-
Couldn't load subscription status.
- Fork 38.8k
Description
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:

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

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
- A span shows for sending the JMS
Message, but the only span present is for the HTTP request that triggered it - Tracing metadata to be present in the
Messageproperties, but there are no properties set in the resulting message