Skip to content

Commit 5c58d21

Browse files
authored
Update opentelemetry-api/src/opentelemetry/trace/__init__.py
1 parent 6f9fc39 commit 5c58d21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opentelemetry-api/src/opentelemetry/trace/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ def use_span(
590590

591591
# Record only exceptions that inherit Exception class but not BaseException, because
592592
# classes that directly inherit BaseException are not technically errors, e.g. GeneratorExit.
593+
# See https://github.com/open-telemetry/opentelemetry-python/issues/4484.
593594
except Exception as exc: # pylint: disable=broad-exception-caught
594595
if isinstance(span, Span) and span.is_recording():
595596
# Record the exception as an event

0 commit comments

Comments
 (0)