Trace binding (query tree)
Closed this issue · 3 comments
mrandybu commented
I have fastapi service and krakend (already use tracing). I add tracing for nginx, but in jaeger traces are not bound to each other (nginx -> krakend). Maybe I must use specific parameters?
miry commented
Sound like nginx and application use different propogation http headers.
Similar reply was here:
#456 (comment)
Make sure you have configured:
# Propagate the active span context upstream, so that the trace can be
# continued by the backend.
# See http://opentracing.io/documentation/pages/api/cross-process-tracing.html
opentracing_propagate_context;
mrandybu commented
Krakend with opencesus use the x-b3-traceid
Can I change trace format on nginx, or I need change code of service?
miry commented
@mrandybu You can use Zipkin opentracing library. Example: https://github.com/opentracing-contrib/nginx-opentracing/blob/master/example/go/otel/nginx.conf#L26