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

ASGI instrumentation creates a 'type' attribute #2055

Closed
adriangb opened this issue Nov 10, 2023 · 3 comments · Fixed by #2300
Closed

ASGI instrumentation creates a 'type' attribute #2055

adriangb opened this issue Nov 10, 2023 · 3 comments · Fixed by #2300
Labels
bug Something isn't working

Comments

@adriangb
Copy link
Contributor

See

This results in an attribute like {'type': 'http.request.body'}, which seems wrong. type is a super generic key and I don't think leaking the details of the web framework spec (http.request.body is an ASGI specific string) is very helpful to users.

Can we get rid of this?

@adriangb adriangb added the bug Something isn't working label Nov 10, 2023
@samuelcolvin
Copy link
Contributor

Any answer on this? I still see this apparently undocument type attribute everywhere and would love to understand why it's being included.

@bogdandrutu
Copy link
Member

@open-telemetry/opentelemetry-python-contrib-approvers I think we should not use any generic word like "type" in our instrumentations.

@samuelcolvin
Copy link
Contributor

Thanks @bogdandrutu, PR submitted #2145.

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
3 participants