Skip to content
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

Disable x-b3-flags propagation #160

Open
cello86 opened this issue Mar 18, 2021 · 3 comments
Open

Disable x-b3-flags propagation #160

cello86 opened this issue Mar 18, 2021 · 3 comments

Comments

@cello86
Copy link

cello86 commented Mar 18, 2021

Hi,
we configured the opentracing plugin on nginx 1.19.8 and all works fine, but we noticed that all requests had the header X-B3-Flags set to 0 and our backend API GW logged an error if this header has a value different from "1".

We tried to use proxy_set_header config to override this value but it's not possible to remove the header sent by nginx.

Is is possible to avoid the forward of the "x-b3-flags: 0" and omit it if necessary via config file?

Thanks,
Marcello

@miry
Copy link
Collaborator

miry commented Mar 18, 2021

@miry
Copy link
Collaborator

miry commented Mar 18, 2021

According the documentation https://github.com/openzipkin/b3-propagation#debug-flag this flag should be 1 (for debug), or any other value. I think need to request help of API GW to have other values for this header.

@cello86
Copy link
Author

cello86 commented Mar 18, 2021

@miry we noticed that is a part of the zipkin-cpp-opentracing module and it forwards all requests with the x-b3-flags to zero, but on nginx side you can't override it to 0 or 1 in case of debug.

Thanks,
Marcello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants