Closed TJackler closed 9 months ago
Are you saying that our samples do not work well?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Your examples work fine for the case which is not changing the thread. When I use CompletableFuture.supplyAsync
and supply the job taken from the queue to the another thread (due to supplyAsync
), it does not propagate the trace id to that thread.
have you passed an executor to the supplyAsync
and wrapped it with context propagation?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Yes, I did wrap the custom context propagator to the supply async, but it does not make traceId propagation possible to the new thread local.
Can you file an issue in Spring AMQP project where the actual instrumentation takes place?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing in favour of https://github.com/spring-projects/spring-amqp/issues/2608
Hi,
I am designing a system that takes a REST call and sends a message to rabbit a queue. The RabbitListener method for that queue processes the message with its handler, but when I take the message and pass to another queue, the traceId is not propagated to the RabbitListener handler of the new queue.
For visualization purpose;
The header (which comes from the rest through
rabbitTemplate
) includestraceparent
but. Returned message (from this method) to desired queue does not includetraceparent
header.I checked out the examples below; but It did not help to propagate traceId for this case. https://github.com/micrometer-metrics/micrometer-samples/tree/main/rabbitmq-consumer https://github.com/micrometer-metrics/micrometer-samples/tree/main/rabbitmq-producer
Thanks for the development @marcingrzejszczak and rest of the team members.