You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a nginx config with a proxy_pass to an upstream server, along with a mirror directive to another upstream server in the same location. I'm trying to configure tracing to zipkin for both the proxied and mirrored request, but it seems if I enable the opentracing_propagate_context on the /mirror location, the resulting trace is wrong, with zipkin displaying the mirrored request and the proxied one as part of the same span.
I tried different directives from the reference guide, such as changing the location name, but to no avail.
And this is what I see in Zipkin:
As you can see, there's no /mirror location traced, and the trk-raw-request-store trace, which should be child of the mirror, it's instead listed as child of the proxied upstream trace.
Any ideas or suggestions as to why this might be happening?
Thanks.
The text was updated successfully, but these errors were encountered:
An update on this issue: I was able to correctly propagate the TraceId for subrequests, but had to make a couple of changes:
upgrade nginx-opentracing to v0.8.0
enable log_subrequest on; in the server block
After these changes, zipkin was correctly reporting parent-child relationships in the trace. I'm still confused as to why I'd need log_subrequest. Perhaps there still is an underlying issue, or just an undocumented requirement for subrequests.
I have a nginx config with a proxy_pass to an upstream server, along with a
mirror
directive to another upstream server in the same location. I'm trying to configure tracing to zipkin for both the proxied and mirrored request, but it seems if I enable theopentracing_propagate_context
on the/mirror
location, the resulting trace is wrong, with zipkin displaying the mirrored request and the proxied one as part of the same span.I tried different directives from the reference guide, such as changing the location name, but to no avail.
Here's a sample of my config:
And this is what I see in Zipkin:

As you can see, there's no
/mirror
location traced, and thetrk-raw-request-store
trace, which should be child of the mirror, it's instead listed as child of the proxied upstream trace.Any ideas or suggestions as to why this might be happening?
Thanks.
The text was updated successfully, but these errors were encountered: