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-integration-4.1.md.

Spring Integration

OpenTelemetry Java agent instrumentation

This instrumentation enables producer and consumer messaging spans for Spring Integration.

  • Name: spring-integration-4.1
  • Scope: io.opentelemetry.spring-integration-4.1
  • Target versions: org.springframework.integration:spring-integration-amqp:[4.1.0.RELEASE,), org.springframework.integration:spring-integration-core:[4.1.0.RELEASE,)
  • Library: https://spring.io/projects/spring-integration

Telemetry

When default

Spans

Span kindAttributes
CONSUMERmessaging.operation (STRING)

When otel.instrumentation.spring-integration.producer.enabled=true

Spans

Span kindAttributes
CONSUMERmessaging.operation (STRING)
PRODUCERmessaging.operation (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.client.operation.durationhistogramHISTOGRAMsDuration of messaging operation initiated by a producer or consumer client.
messaging.client.sent.messagescounterLONG_SUM{message}Number of messages producer attempted to send to the broker.
messaging.process.durationhistogramHISTOGRAMsDuration of processing operation.
MetricAttributes
messaging.client.consumed.messagesmessaging.destination.name (STRING), messaging.operation.name (STRING), messaging.system (STRING)
messaging.client.operation.durationmessaging.destination.name (STRING), messaging.operation.name (STRING), messaging.operation.type (STRING), messaging.system (STRING)
messaging.client.sent.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.operation.name (STRING), messaging.operation.type (STRING), messaging.system (STRING)
PRODUCERmessaging.destination.name (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.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.spring-integration.global-channel-interceptor-patternslist*A list of Spring channel name patterns that will be intercepted.
otel.instrumentation.spring-integration.producer.enabledbooleanfalseCreate producer spans when messages are sent to an output channel. Enable when you're using a messaging library that doesn't have its own instrumentation for generating producer spans. Note that the detection of output channels only works for Spring Cloud Stream DirectWithAttributesChannel.

Data

  • JSON (latest): /data/javaagent/instrumentations/spring-integration-4.1/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/spring-integration-4.1/spring-integration-4.1-9839836bb7f7.json
  • Explore: /java-agent/instrumentation/spring-integration-4.1