Skip to content

Commit 716e3d6

Browse files
committed
remove span is_recording method
1 parent b03bf00 commit 716e3d6

File tree

1 file changed

+0
-4
lines changed
  • instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi

1 file changed

+0
-4
lines changed

instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,7 @@ def add_response_attributes(
480480
"""Adds HTTP response attributes to span using the arguments
481481
passed to a PEP3333-conforming start_response callable.
482482
"""
483-
if not span.is_recording():
484-
return
485483
status_code_str, _ = start_response_status.split(" ", 1)
486-
487-
status_code = 0
488484
try:
489485
status_code = int(status_code_str)
490486
except ValueError:

0 commit comments

Comments
 (0)