Skip to content

JMS messages lack tracing information #33898

@kropptrevor

Description

@kropptrevor

Java Spring Boot version: 3.5.5
Java OTEL version: 2.10.0

ActiveMQ version: 5.8.5
Aspire image: mcr.microsoft.com/dotnet/aspire-dashboard:8.1.0
OTEL Collector image: ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.113.0

Infrastructure:

Java Application JMS --> ActiveMQ
Java Application Tracing --[http/protobuf]--> OTEL Collector --[OTLP/gRPC]--> Aspire

Dependencies: deps-tree.txt
Reproducible example: example.zip

I used Aspire to verify that traces were being recorded:
image

I checked the ActiveMQ console to view the properties of the messages:
image

I verified that the JmsTemplate was using an instance of io.micrometer.observation.SimpleObservationRegistry.

The MessageProducer being used is org.apache.activemq.ActiveMQMessageProducer.

It seems to me that the method io.micrometer.jakarta9.instrument.jms.JmsPublishObservationContext::getSetter is never called, although setter seems to be doing the work of adding properties to the Message.

I am expecting that

  1. A span shows for sending the JMS Message, but the only span present is for the HTTP request that triggered it
  2. Tracing metadata to be present in the Message properties, but there are no properties set in the resulting message

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions