-
Notifications
You must be signed in to change notification settings - Fork 755
-
I have a Python program that is automatically instrumented by OpenTelemetry (OTel), and the traces are exported to a log file.
I noticed that whenever an exception is raised and unhandled, it terminates all open spans in the stack, and they are not exported to the log file. However, if I catch the exception and manually end the span, it gets recorded.
Is this the expected behavior, and if so, why?
Is there a way to configure OTel to save the spans even when they encounter an unhandled exception, and possibly add the exception as an event within the span?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment