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
Header added to request in rhai does not propagated into logs trace_id field #4892
Comments
Hi @kindermax, I think we would accept a PR that simply strips out dashes in |
Hi, unfortunately in my case uuid4 |
That would be great. Make sure to add some sort of test. |
@kindermax Do you think that the PR #5071 will resolve this satisfactorily? |
@abernix well, partially yes. If I put a log processor after router like this |
Describe the bug
Router version: v1.43.1
I use rhai to insert a
x-trace-id
header into request. Then I expect value of this header to be atrace_id
in logs.To Reproduce
Here I use
x-trace-id
to propagate header value to logs.If
x-trace-id
present in headers from browser request - it works fine. But if I addx-trace-id
header in rhai script - value does not propagated.rhai script
Expected behavior
I expect that rhai-created header propagated to
trace_id
field in logs.The text was updated successfully, but these errors were encountered: