-
Notifications
You must be signed in to change notification settings - Fork 705
Logging Instrumentation gives Exception: Invalid type when an exception is passed directly to logging handler #4100
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
Comments
hey @meldsza, just interested in it. I didn't reproduce this issue on my local side, any other steps I need? just have the "Test" printed in my console without any exception raised. |
Sorry @FraserYu , you are right, I missed one environment variable to make this reproducible: |
Similar issue, but with
|
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe your environment
OS: Mac and RHEL 9
Python version: python 3.12
Package version: 0.47b0
env:
What happened?
The Opentelemetry Logging instrumentation gives an exception when logging an exception directly.
Steps to Reproduce
Provided below is a minimal example to reproduce this issue
Run this using
opentelemetry-instrument --traces_exporter none --logs_exporter otlp python example.py
Expected Result
No exception is raised and the log is transported successfully to the otel collector.
Actual Result
An exception is raised and the log is not transported to the collector
Additional context
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: