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

fix(observability): missing tracing context on HTTP client metrics #8007

Merged
merged 2 commits into from Jun 23, 2021

Conversation

tobz
Copy link
Contributor

@tobz tobz commented Jun 23, 2021

Currently, we create a dedicated http span when building an instance of HttpClient<B> that gets wrapped around subsequent usages of the client, such as when sending a request. However, based on where we create this span -- when building HttpClient<B> itself -- and how we use it -- instrumenting request futures directly -- we never capture the current span context at the time of when the request is made, which leads to all internal metrics that happen in that request lacking labels.

This PR simply eschews the at-creation-time span and instead generates the http span when the request is being constructed.

Signed-off-by: Toby Lawrence toby@nuclearfurnace.com

Signed-off-by: Toby Lawrence <toby@nuclearfurnace.com>
@tobz tobz requested review from a team and blt and removed request for a team June 23, 2021 18:06
Signed-off-by: Toby Lawrence <toby@nuclearfurnace.com>
@tobz tobz merged commit 831cdf9 into master Jun 23, 2021
@tobz tobz deleted the tobz/fix-http-sink-metrics-tags branch June 23, 2021 21:21
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

Successfully merging this pull request may close these issues.

None yet

4 participants