-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Span.record_exception
doesn't use the exception
parameter to format the stacktrace
#3762
Labels
bug
Something isn't working
Comments
Care to open a PR? |
xrmx
added a commit
to xrmx/opentelemetry-python
that referenced
this issue
Mar 13, 2024
Make the stacktrace formatting not rely on being inside the except scope. Fixes open-telemetry#3762 Suggested-by: Alex Hall <alex.mojaki@gmail.com>
11 tasks
xrmx
added a commit
to xrmx/opentelemetry-python
that referenced
this issue
Mar 13, 2024
…he except scope Make the stacktrace formatting not rely on being inside the except scope. Fixes open-telemetry#3762 Suggested-by: Alex Hall <alex.mojaki@gmail.com>
xrmx
added a commit
to xrmx/opentelemetry-python
that referenced
this issue
Mar 13, 2024
…he except scope Make the stacktrace formatting not rely on being inside the except scope. Fixes open-telemetry#3762 Suggested-by: Alex Hall <alex.mojaki@gmail.com>
xrmx
added a commit
to xrmx/opentelemetry-python
that referenced
this issue
Mar 14, 2024
…he except scope Make the stacktrace formatting not rely on being inside the except scope. Fixes open-telemetry#3762 Suggested-by: Alex Hall <alex.mojaki@gmail.com>
xrmx
added a commit
to xrmx/opentelemetry-python
that referenced
this issue
Mar 18, 2024
…he except scope Make the stacktrace formatting not rely on being inside the except scope. Fixes open-telemetry#3762 Suggested-by: Alex Hall <alex.mojaki@gmail.com>
xrmx
added a commit
to xrmx/opentelemetry-python
that referenced
this issue
Mar 19, 2024
…he except scope Make the stacktrace formatting not rely on being inside the except scope. Fixes open-telemetry#3762 Suggested-by: Alex Hall <alex.mojaki@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This line:
opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Line 991 in 8ad10f7
formats a stacktrace for the currently handled exception, which may be different from the exception passed to the method.
Here's an example of how this can go wrong:
Replacing the faulty line with this works correctly:
The text was updated successfully, but these errors were encountered: