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/spring-rabbit-1.0.md.

Spring Rabbit

OpenTelemetry Java agent instrumentation

This instrumentation enables consumer messaging spans for Spring RabbitMQ listeners.

  • Name: spring-rabbit-1.0
  • Scope: io.opentelemetry.spring-rabbit-1.0
  • Target versions: org.springframework.amqp:spring-rabbit:(,)
  • Library: https://spring.io/projects/spring-amqp

Telemetry

When default

Spans

Span kindAttributes
CONSUMERmessaging.destination.name (STRING), messaging.message.body.size (LONG), messaging.operation (STRING), messaging.system (STRING), network.peer.address (STRING), network.peer.port (LONG), network.type (STRING)

When otel.semconv-stability.preview=messaging

Metrics

MetricInstrumentTypeUnitDescription
messaging.client.consumed.messagescounterLONG_SUM{message}Number of messages that were delivered to the application.
messaging.process.durationhistogramHISTOGRAMsDuration of processing operation.
MetricAttributes
messaging.client.consumed.messageserror.type (STRING), messaging.destination.name (STRING), messaging.operation.name (STRING), messaging.system (STRING), server.address (STRING), server.port (LONG)
messaging.process.durationerror.type (STRING), messaging.destination.name (STRING), messaging.operation.name (STRING), messaging.system (STRING), server.address (STRING), server.port (LONG)

Spans

Span kindAttributes
CONSUMERerror.type (STRING), messaging.destination.name (STRING), messaging.operation.name (STRING), messaging.operation.type (STRING), messaging.rabbitmq.destination.routing_key (STRING), messaging.rabbitmq.message.delivery_tag (LONG), messaging.system (STRING), network.peer.address (STRING), network.peer.port (LONG), network.type (STRING), server.address (STRING), server.port (LONG)

Configuration

OptionTypeDefaultDescription
otel.instrumentation.messaging.experimental.capture-headerslistDeprecated: use otel.instrumentation.common.messaging.headers.included instead. Ignored without a warning under v3-preview; may be removed in a later minor release and will be removed no later than 3.0. A comma-separated list of header names to capture as span attributes. It does not support glob patterns: an entry containing * or ? is ignored with a warning, and every other entry is matched as a literal header name.
otel.instrumentation.messaging.experimental.headers.excludedlistDeprecated: use otel.instrumentation.common.messaging.headers.excluded instead. Ignored without a warning under v3-preview; may be removed in a later minor release and will be removed no later than 3.0.
otel.instrumentation.messaging.experimental.headers.includedlistDeprecated: use otel.instrumentation.common.messaging.headers.included instead. Ignored without a warning under v3-preview; may be removed in a later minor release and will be removed no later than 3.0.
otel.instrumentation.common.messaging.headers.excludedlistA comma-separated list of case-sensitive message header name glob patterns to exclude from span attributes. ? matches one character and * matches zero or more characters. Excluded patterns take precedence over included patterns. An absent or empty selector captures no headers; an exclude-only selector captures every header not excluded, which may expose sensitive information.
otel.instrumentation.common.messaging.headers.includedlistA comma-separated list of case-sensitive message header name glob patterns to capture as span attributes. ? matches one character and * matches zero or more characters. Excluded patterns take precedence over included patterns. An absent or empty selector captures no headers; an exclude-only selector captures every header not excluded.

Data

  • JSON (latest): /data/javaagent/instrumentations/spring-rabbit-1.0/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/spring-rabbit-1.0/spring-rabbit-1.0-771a0a129b95.json
  • Explore: /java-agent/instrumentation/spring-rabbit-1.0