Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ def client_response_hook(span: Span, scope: Scope, message: dict[str, Any]):
redact_url,
sanitize_method,
)

from opentelemetry.semconv._incubating.attributes.http_attributes import (
HTTP_SERVER_NAME,
)

class ASGIGetter(Getter[dict]):
def get(
Expand Down Expand Up @@ -397,7 +399,7 @@ def collect_request_attributes(
http_host_value_list = asgi_getter.get(scope, "host")
if http_host_value_list:
if _report_old(sem_conv_opt_in_mode):
result[SpanAttributes.HTTP_SERVER_NAME] = ",".join(
result[HTTP_SERVER_NAME] = ",".join(
http_host_value_list
)
http_user_agent = asgi_getter.get(scope, "user-agent")
Expand Down