christian-morin commented on issue #2802:
URL: https://github.com/apache/camel-quarkus/issues/2802#issuecomment-863991230


   Yes, that worked! The context on my OpenTracingSpanAdapter didn't have a 
toTraceId() method though, but casting the Span to a JaegerSpan made me able to 
retrieve it.
   
   ```
   OpenTracingSpanAdapter adapter = (OpenTracingSpanAdapter) 
ActiveSpanManager.getSpan(exchange);
   JaegerSpanContext spanCtx = 
((JaegerSpan)adapter.getOpenTracingSpan()).context();
   System.out.println("=======>" + spanCtx.getTraceId());
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to