Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Spans killed when an exception raised and unhandled in python #4341

Unanswered
jemo21k asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /