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

Context missing from http server / client content length metrics #7505

Closed
anuragagarwal561994 opened this issue Jan 4, 2023 · 0 comments · Fixed by #7506
Closed

Context missing from http server / client content length metrics #7505

anuragagarwal561994 opened this issue Jan 4, 2023 · 0 comments · Fixed by #7506
Labels
bug Something isn't working

Comments

@anuragagarwal561994
Copy link
Contributor

anuragagarwal561994 commented Jan 4, 2023

Describe the bug
Context is not passed while recording metrics for content length metrics for http server and client.

Because of this if a baggage view is applied to the meter, it is not available to the attribute processor which is trying to read from the context as the context might have been changed (in async cases especially) because by default we are using Context.current().

What did you expect to see?
Context should be passed to the context length metrics to be able to fetch the data from baggage api that is present in the current context.

What version are you using?
1.19.0

@anuragagarwal561994 anuragagarwal561994 added the bug Something isn't working label Jan 4, 2023
trask pushed a commit that referenced this issue Jan 18, 2023
Closes
#7505

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant