jamesnetherton commented on issue #7813:
URL: https://github.com/apache/camel-quarkus/issues/7813#issuecomment-3377899703

   @squakez unlike https://github.com/apache/camel-quarkus/issues/7801, I think 
this case is more of an issue.
   
   With the original opentelemetry component you get the expected span 
hierarchy. With opentelemetry2, you get a dangling trace from the Vert.x HTTP 
server. 
   
   The problem is maybe here:
   
   
https://github.com/apache/camel/blob/0c97f9eb145042ccd07626ea3c6c3e2db22d7057/components/camel-opentelemetry2/src/main/java/org/apache/camel/opentelemetry2/OpenTelemetryTracer.java#L112-L115
   
   The `extractor.get("traceparent")` part is trying to find a Camel header 
named `traceparent`. But it doesn't exist, so we end up passing a `null` 
context into `contextPropagators.getTextMapPropagator().extract()`, which is 
why we end up with disconnected spans.
   
   If it were to pass `Context.current()` it would probably work.  But I'm no 
otel expert...


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to