-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return x-b3-trace id in response #9243
Comments
@bluetechy I'm wondering if e.g. Tried adding it in: name: local_route
virtual_hosts:
- name: backend
+ response_headers_to_add:
+ - header:
+ key: x-b3-traceid
+ value: "%REQ(x-b3-traceid)%"
domains:
- "*"
routes:
|
@dio Yes, I would think that would work nicely. Is |
@bluetechy mind to share your envoy version? |
@dio Yes, sorry....I should have included my version in my last question to you. Here you go: |
Yeap. You can use |
Since it seems it is answered, I'm closing this. |
@dio I can confirm it does work using
|
@bluetechy, sure! Thanks for confirming. To make it available in the example, I think you can send out a PR? |
Description:
Since Zipkin's Lens UI allows one to search on the trace id, it would be helpful if there was a flag in envoy's
typed_config
to include in the response header thex-b3-traceid
, such asreturn_trace_id: true
(similar to thegenerate_request_id: true
flag).For example:
Or alternatively in the
tracing
object:so that it could be used to search here:
Relevant Links:
The text was updated successfully, but these errors were encountered: