We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03bf00 commit 716e3d6Copy full SHA for 716e3d6
instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py
@@ -480,11 +480,7 @@ def add_response_attributes(
480
"""Adds HTTP response attributes to span using the arguments
481
passed to a PEP3333-conforming start_response callable.
482
"""
483
- if not span.is_recording():
484
- return
485
status_code_str, _ = start_response_status.split(" ", 1)
486
-
487
- status_code = 0
488
try:
489
status_code = int(status_code_str)
490
except ValueError:
0 commit comments