Spymemcached
OpenTelemetry Java agent instrumentation
This instrumentation enables database client spans and database client metrics for Memcached operations using the Spymemcached client.
- Name:
spymemcached-2.12 - Scope:
io.opentelemetry.spymemcached-2.12 - Target versions:
net.spy:spymemcached:[2.12.0,) - Library: https://github.com/couchbase/spymemcached
Telemetry
When default
Spans
| Span kind | Attributes |
|---|---|
| CLIENT | db.operation (STRING), db.system (STRING), server.address (STRING), server.port (LONG) |
When otel.instrumentation.spymemcached.experimental-span-attributes=true
Spans
| Span kind | Attributes |
|---|---|
| CLIENT | db.operation (STRING), db.system (STRING), server.address (STRING), server.port (LONG), spymemcached.command.cancelled (BOOLEAN), spymemcached.result (STRING) |
When otel.semconv-stability.opt-in=database
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
db.client.operation.duration | histogram | HISTOGRAM | s | Duration of database client operations. |
| Metric | Attributes |
|---|---|
db.client.operation.duration | db.operation.name (STRING), db.system.name (STRING), network.peer.address (STRING), network.peer.port (LONG), server.address (STRING), server.port (LONG) |
Spans
| Span kind | Attributes |
|---|---|
| CLIENT | db.operation.name (STRING), db.system.name (STRING), error.type (STRING), network.peer.address (STRING), network.peer.port (LONG), server.address (STRING), server.port (LONG) |
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.spymemcached.experimental-span-attributes | boolean | false | Enables experimental span attributes spymemcached.result and spymemcached.command.cancelled. |