Is there way to configure opentracing-spring-jaeger-cloud-starter to handle any other header than Uber-Trace-Id? I have Traefik as an ingress in my kubernetes cluster. Traefik can be configured to change traceContextHeaderName. Default value is "uber-trace-id". When I change it to some custom, there is no connection (I mean span connection) between services. I believe that opentracing works only with Uber-Trace-Id. Is there way to configure that?
I test this in minikube with Traefik as an ingress. Then all requests go to spring-cloud-gateway and are propagate to services.
Thanks for help!
The traceparent header represents the incoming request in a tracing system in a common format, understood by all vendors. Here's an example of a traceparent header. traceparent: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01.
Trace ID is a system number Treasury uses to identify invoice documents in PeopleSoft. For invoice documents sent from SAP the Trace ID will consist of: PC1 to identify SAP, the fiscal year the document posts in SAP (the fiscal year it clears to Treasury from SAP), and the SAP clearing document number.
OpenTracing is now deprecated, and users of OpenTracing are advised to migrate to OpenTelemetry.
Traces, spans, and edges During the journey of the transaction, it can create one or multiple spans. A span represents a single unit of work inside a transaction, for example, an RPC client/server call, sending query to the database server, or publishing a message to the message bus.
No, there is no out-of-the-box possibility to change the HTTP header name.
However, you can enable B3 header propagation with opentracing.jaeger.enable-b3-propagation=true
.
To configure Traefik to send the trace data as B3 headers, see https://github.com/containous/traefik/blob/master/docs/content/observability/tracing/jaeger.md#propagation.
traceContextHeaderName
should also be configured as X-B3-TraceId
then.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With