-
Notifications
You must be signed in to change notification settings - Fork 121
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
Mixed tags for a specific location, from other server/location blocks #171
Comments
@CezarAntohe Could you please send a PR with your changes and may be add some integration tests. |
@miry Thanks for looking into this matter. Quick question - branching from this repo is not authorised for me. What would be the procedure to open a PR? Fork the master, and push there? Or obtain permissions to branch from master and open a PR from that branch? |
@CezarAntohe We use default opensource approach: Fork, create branch in the fork, when it is ready github will show you the button to create PR from the branch to this repo. |
Thanks a lot, will open the PR as soon as possible. |
Fixed in #173 |
Hello all,
First of all, thank you for looking into this issue.
Description - please consider the following nginx configuration example, with 2 server blocks:
When curl-ing any of the locations from either tracing.test1 or tracing.test2, the resulting traces contain tags from the other server or other location as well.
I would expect a curl to tracing.test1, location /tracing12, to generate a trace that only contains the tags server1 and location12, not the tag location11. The same happens when sending requests for tracing.test1.
Looking over the code in ngx_http_opentracing_module.cpp, function merge_opentracing_loc_conf, I believe I found the issue there. I have added a patch with a possible fix for merging module configurations. The fix is tested and works correctly. It resembles the config merging from the opentelemetry nginx module, we use them both in our company.
Here is the patch:
Thank you again for looking at this issue, please let me know what you think.
Cheers!
The text was updated successfully, but these errors were encountered: