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/lettuce-4.0.md.

Lettuce

OpenTelemetry Java agent instrumentation

This instrumentation enables database client spans and database client metrics for the Lettuce Redis client.

  • Name: lettuce-4.0
  • Scope: io.opentelemetry.lettuce-4.0
  • Target versions: biz.paluch.redis:lettuce:[4.0.Final,)
  • Library: https://github.com/redis/lettuce

Telemetry

  • Metrics: db.client.operation.duration
  • Span attributes: db.operation, db.system, server.address, server.port, peer.service, db.operation.batch.size, db.operation.name, db.system.name, error.type, service.peer.name, lettuce.command.cancelled

Configuration

OptionTypeDefaultDescription
otel.instrumentation.common.peer-service-mappingmapUsed to specify a mapping from host names or IP addresses to peer services.
otel.instrumentation.lettuce.connection-telemetry.enabledbooleanfalseEnables connection telemetry spans for Redis connections.
otel.instrumentation.lettuce.experimental-span-attributesbooleanfalseEnables experimental span attribute lettuce.command.cancelled.

Data

  • JSON: /data/javaagent/instrumentations/lettuce-4.0/lettuce-4.0-9241d6d35ef5.json
  • Explore: /java-agent/instrumentation/lettuce-4.0