-
Notifications
You must be signed in to change notification settings - Fork 837
refactor(asgi): replace HTTP_SERVER_NAME SpanAttribute with semconv attribute #4039
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
base: main
Are you sure you want to change the base?
Conversation
xrmx
left a comment
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 think there are a lot more users of SpanAttributes in the asgi package
...tation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py
Outdated
Show resolved
Hide resolved
...tation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py
Outdated
Show resolved
Hide resolved
…emetry/instrumentation/asgi/__init__.py Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
…emetry/instrumentation/asgi/__init__.py Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
|
@xrmx kindly look into the changes as per convenience if the following PR is merge ready, thank you. |
As I already mentioned there are a ton more of users of SpanAttributes in the asgi instrumentation, i.e. |
| "name": "GET / http send", | ||
| "kind": trace_api.SpanKind.INTERNAL, | ||
| "attributes": { | ||
| SpanAttributes.HTTP_STATUS_CODE: 200, |
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.
The task is to substitute the use of SpanAttributes with other modules inside opentelemetry.semconv, not to change what is asserted here. If we don't have a replacement with the same value then they should stay untouched
Refs #3475
Type of change
How Has This Been Tested?
This change updates a semantic convention attribute constant without modifying
runtime behavior. Local test execution on Windows is limited by environment
constraints; CI will validate the change.
Does This PR Require a Core Repo Change?
Checklist: