Replies: 2 comments 1 reply
-
|
Does it work with the agent? If it does I'd guess you'll need some spring cloud gateway specific instrumentation or reactor instrumentation to make it work with the spring starter. |
Beta Was this translation helpful? Give feedback.
-
|
@laurit However, using the Otel spring starter only (I'm on SCG MVC, no Reactor involved) and when routing via a custom Is MVC function routing( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using Spring cloud gateway (MVC) integrated with the OpenTelemetry spring starter for tracing.
However, a single incoming request generates two separate traces.
io.opentelemetry.spring-webmvc-6.0(server span)io.opentelemetry.spring-web-3.1(client span)Each has a different trace ID, so the routing span is not linked to the incoming one.
Below code is a part of the routing method.
I expected these two spans to be single trace.
Is this a known limitation or missing instrumentation for SCG MVC when using the Otel starter?
If not, what is the recommended way to propagate the trace context between the incoming request and routing span?
Environment
tracecontext,baggageThank you!
Beta Was this translation helpful? Give feedback.
All reactions