I have 3 microservices that are communicating over JMS (ActiveMQ Artemis). I am looking to implement Open Telemetry across these flows. I have tried the automated WithSpan approach but obviously the tracecontext is not propagated between services as it's async/JMS. I have tried to follow the manual context propagation approach outlined here, but then I am getting 2 errors while doing this.
java.lang.IllegalArgumentException
: Identifier contains invalid JMS identifier character '-': 'uber-trace-id'- I can't seem to implement the setter and set the properties on the message object as i get an exception saying the properties are read-only.
Any idea how I can do this where i want to be able to trace the end-to-end flow?