Closed
Description
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:
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:
from opentelemetry import autoinstrumentation
autoinstrumentation.initialize()
Describe alternatives you've considered
No response
Additional Context
No response
Would you like to implement a fix?
Yes
Activity