-
Notifications
You must be signed in to change notification settings - Fork 820
Querier: streamline tracing spans #3924
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
Conversation
`nethttp.MiddlewareFunc()` starts a new top-level trace, but we already have tracing middleware from `Server.HTTPServer`. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jtlisi I think you've been the last one working on it. Could you review it, please?
Sorry I took so long to get to this. It had been a while since I had worked on this and needed to re-familiarize myself with why this was needed.
If that doesn't make sense let me know and I can try and rephrase or clarify things. In general, one way we alleviate this is by moving the trace propagation to the |
The downside is described at #3913 |
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
I re-introduced the tracing middleware in the single-binary path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-tested it and looks working fine both in microservices mode (with and without query-scheduler) and single-binary mode.
What this PR does:
Remove
internalQuerier
trace handler:nethttp.MiddlewareFunc()
starts a new top-level trace, but we already have tracing middleware fromServer.HTTPServer
.One doubt: I'm not sure what happens in single-binary mode. I could not follow this comment:
cortex/pkg/cortex/modules.go
Lines 327 to 329 in ebef1e1
I cannot see how this code affects processed using the external HTTP Server, because it only impacts what happens to requests routed via the query-frontend worker.
Which issue(s) this PR fixes:
Fixes #3913
Checklist
CHANGELOG.md
updated