Skip to content

Commit 4826bc3

Browse files
fix: revert span.status to getattr to fix wsgi/asgi mock tests
1 parent 0fc5e3a commit 4826bc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • opentelemetry-instrumentation/src/opentelemetry/instrumentation

opentelemetry-instrumentation/src/opentelemetry/instrumentation/_semconv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def _set_db_operation(
618618

619619

620620
def _set_span_status(span: Span, status: StatusCode) -> None:
621-
current = span.status
621+
current = getattr(span, "status", None)
622622
if current is None:
623623
span.set_status(Status(status))
624624
return

0 commit comments

Comments
 (0)