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 6f9fc39 commit 5c58d21Copy full SHA for 5c58d21
opentelemetry-api/src/opentelemetry/trace/__init__.py
@@ -590,6 +590,7 @@ def use_span(
590
591
# Record only exceptions that inherit Exception class but not BaseException, because
592
# classes that directly inherit BaseException are not technically errors, e.g. GeneratorExit.
593
+ # See https://github.com/open-telemetry/opentelemetry-python/issues/4484.
594
except Exception as exc: # pylint: disable=broad-exception-caught
595
if isinstance(span, Span) and span.is_recording():
596
# Record the exception as an event
0 commit comments