Elasticsearch REST Client
OpenTelemetry Java agent instrumentation
This instrumentation enables database client spans and database client metrics for Elasticsearch REST clients.
- Name:
elasticsearch-rest-6.4 - Scope:
io.opentelemetry.elasticsearch-rest-6.4 - Target versions:
org.elasticsearch.client:elasticsearch-rest-client:[6.4,7.0) - Library: https://www.elastic.co/guide/en/elasticsearch/client/java-rest
Telemetry
- Metrics:
db.client.operation.duration - Span attributes:
db.system,http.request.method,server.address,server.port,url.full,db.system.name
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.http.known-methods | list | CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,TRACE | Configures the instrumentation to recognize an alternative set of HTTP request methods. All other methods will be treated as _OTHER. |
otel.instrumentation.elasticsearch.capture-search-query | boolean | false | Enable the capture of search query bodies. It is important to note that Elasticsearch queries may contain personal or sensitive information. |