# Spymemcached

<!-- llms-txt-link: /llms.txt -->

> 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

- **Metrics**: `db.client.operation.duration`
- **Span attributes**: `db.operation`, `db.system`, `server.address`, `server.port`, `spymemcached.command.cancelled`, `spymemcached.result`, `db.operation.name`, `db.system.name`, `error.type`

## Configuration

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `otel.instrumentation.spymemcached.experimental-span-attributes` | boolean | false | Enables experimental span attributes `spymemcached.result` and `spymemcached.command.cancelled`. |

## Data

- **JSON**: [/data/javaagent/instrumentations/spymemcached-2.12/spymemcached-2.12-9f61b9ba7ad9.json](/data/javaagent/instrumentations/spymemcached-2.12/spymemcached-2.12-9f61b9ba7ad9.json)
- **Explore**: [/java-agent/instrumentation/spymemcached-2.12](/java-agent/instrumentation/spymemcached-2.12)
