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

$sent_http_* vars aren't correct when log_subrequest on #141

Open
n4nn31355 opened this issue Oct 2, 2020 · 0 comments
Open

$sent_http_* vars aren't correct when log_subrequest on #141

n4nn31355 opened this issue Oct 2, 2020 · 0 comments

Comments

@n4nn31355
Copy link

n4nn31355 commented Oct 2, 2020

Initially nginx logs the $sent_http_* variables for the targeted url:

nginx_1        | uri_path="/" uri_query="-" status="200" http_svc="handler1"

But when we use log_subrequest on, we get the subrequest headers in logs:

nginx_1        | uri_path="/__auth__" uri_query="-" status="200" http_svc="handler2"
nginx_1        | uri_path="/" uri_query="-" status="200" http_svc="handler2"

This problem also actual when we use these variables for tags.

There is a slightly modified jaeger example to represent the issue:
https://github.com/n4nn31355/nginx-opentracing/commit/bd63bb37d35b9eb16106f70039b9beca45700293

@n4nn31355 n4nn31355 changed the title $sent_http_* isn't correct when log_subrequest on $sent_http_* vars aren't correct when log_subrequest on Oct 2, 2020
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

1 participant