Couchbase Client
OpenTelemetry Java agent instrumentation
This instrumentation uses the Couchbase tracing SPI to create database client spans for Couchbase Java SDK 3.2 and later.
- Name:
couchbase-3.2 - Scope:
io.opentelemetry.couchbase-3.2 - Target versions:
com.couchbase.client:java-client:[3.2.0,) - Library: https://github.com/couchbase/couchbase-java-client
Telemetry
When default
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL | db.couchbase.collection (STRING), db.couchbase.document_id (STRING), db.couchbase.durability (STRING), db.couchbase.local_id (STRING), db.couchbase.operation_id (LONG), db.couchbase.retries (LONG), db.couchbase.scope (STRING), db.couchbase.server_duration (LONG), db.couchbase.service (STRING), db.name (STRING), db.operation (STRING), db.system (STRING), net.host.name (STRING), net.host.port (LONG), net.peer.name (STRING), net.peer.port (LONG), net.transport (STRING) |
When otel.semconv-stability.opt-in=database
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL | db.collection.name (STRING), db.namespace (STRING), db.operation.name (STRING), db.system.name (STRING), network.peer.address (STRING), network.peer.port (LONG), server.address (STRING), server.port (LONG) |
When otel.semconv-stability.opt-in=database,otel.instrumentation.couchbase.emit-experimental-telemetry=true
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL | db.collection.name (STRING), db.couchbase.document_id (STRING), db.couchbase.durability (STRING), db.couchbase.local_id (STRING), db.couchbase.operation_id (LONG), db.couchbase.retries (LONG), db.couchbase.scope (STRING), db.couchbase.server_duration (LONG), db.couchbase.service (STRING), db.namespace (STRING), db.operation.name (STRING), db.system.name (STRING), network.peer.address (STRING), network.peer.port (LONG), server.address (STRING), server.port (LONG) |
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.couchbase.emit-experimental-telemetry | boolean | false | Enables experimental span attributes emitted from the underlying Couchbase library. When v3 preview is enabled, also enables the request_encoding and dispatch_to_server internal spans. |
otel.instrumentation.couchbase.experimental-span-attributes | boolean | false | Deprecated and will be removed in the next minor release. Use otel.instrumentation.couchbase.emit-experimental-telemetry instead. |