This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/couchbase-3.2.md.

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 kindAttributes
INTERNALdb.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 kindAttributes
INTERNALdb.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 kindAttributes
INTERNALdb.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

OptionTypeDefaultDescription
otel.instrumentation.couchbase.emit-experimental-telemetrybooleanfalseEnables 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-attributesbooleanfalseDeprecated and will be removed in the next minor release. Use otel.instrumentation.couchbase.emit-experimental-telemetry instead.

Data

  • JSON (latest): /data/javaagent/instrumentations/couchbase-3.2/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/couchbase-3.2/couchbase-3.2-af0916b93e0d.json
  • Explore: /java-agent/instrumentation/couchbase-3.2