You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there's an exception in an auto-instrumentation, we currently log the exception and continue. I would like an option to fail faster and immediately re-raise the exception to the caller.
Here's where we currently swallow any instrumentation exceptions:
What problem do you want to solve?
If there's an exception in an auto-instrumentation, we currently log the exception and continue. I would like an option to fail faster and immediately re-raise the exception to the caller.
Here's where we currently swallow any instrumentation exceptions:
opentelemetry-python-contrib/opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py
Lines 121 to 135 in 7bd0895
With this, there's no way to say, fail startup of my service if there's an instrumentation problem.
Describe the solution you'd like
I'd like to be able to re-raise instrumentation exceptions and fail startup if there's a failure in this case:
Describe alternatives you've considered
No response
Additional Context
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: