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-jms-6.0.md.

Spring JMS

OpenTelemetry Java agent instrumentation

This instrumentation enables messaging spans for Spring JMS message consumers.

  • Name: spring-jms-6.0
  • Scope: io.opentelemetry.spring-jms-6.0
  • Target versions: org.springframework:spring-jms:[6.0.0,)
  • Library: https://docs.spring.io/spring-framework/reference/integration/jms.html

Telemetry

When otel.instrumentation.common.messaging.experimental.receive-telemetry.enabled=true

Spans

Span kindAttributes
CONSUMERmessaging.destination.name (STRING), messaging.message.id (STRING), messaging.operation (STRING), messaging.system (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.messagesmessaging.destination.name (STRING), messaging.operation.name (STRING), messaging.system (STRING)
messaging.process.durationmessaging.destination.name (STRING), messaging.operation.name (STRING), messaging.system (STRING)

Spans

Span kindAttributes
CONSUMERmessaging.destination.name (STRING), messaging.destination.subscription.name (STRING), messaging.message.id (STRING), messaging.operation.name (STRING), messaging.operation.type (STRING), messaging.system (STRING)

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.messaging.experimental.receive-telemetry.enabledbooleanfalseDeprecated: use otel.instrumentation.common.messaging.experimental.receive-telemetry.enabled instead. It may be removed in the next minor release.
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.
otel.instrumentation.common.messaging.experimental.receive-telemetry.enabledbooleanfalseEnables experimental receive telemetry, which will cause consumers to start a new trace, with only a span link connecting it to the producer trace.

Data

  • JSON (latest): /data/javaagent/instrumentations/spring-jms-6.0/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/spring-jms-6.0/spring-jms-6.0-251aa3ca9d9d.json
  • Explore: /java-agent/instrumentation/spring-jms-6.0