From 325b3974811cebf3a43416a936485e4e7bd3953e Mon Sep 17 00:00:00 2001 From: Phil White Date: Tue, 2 Jan 2024 15:08:29 -0500 Subject: [PATCH] Update __init__.py Add HTTP_TARGET to server duration and active requests --- .../src/opentelemetry/instrumentation/wsgi/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py b/instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py index 87c73cc737..c8f8c9282f 100644 --- a/instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py @@ -249,6 +249,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he SpanAttributes.HTTP_SERVER_NAME, SpanAttributes.NET_HOST_NAME, SpanAttributes.NET_HOST_PORT, + SpanAttributes.HTTP_TARGET, ] _active_requests_count_attrs = [ @@ -257,6 +258,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he SpanAttributes.HTTP_SCHEME, SpanAttributes.HTTP_FLAVOR, SpanAttributes.HTTP_SERVER_NAME, + SpanAttributes.HTTP_TARGET, ]