How to subscribe to ExceptionRecorder #6353
Replies: 2 comments 2 replies
-
Only if you directly setup |
Beta Was this translation helpful? Give feedback.
-
Thanks @cijothomas - I did experiment with that approach (here). However, without knowing which sources OpenTelemetry is configured to listen to, the only way to make it work is by listening to everything:
Everything is a really big set of information in the context of an enterprise application with distributed tracing... so I don't think that's a practical solution to the problem (it's an interesting experiment, but I can't put it in production). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In
net9.0
and later, theActivityListener
class has an ExceptionRecorder property that can be used to register one or more callbacks that will be called when an Exception occurs:Is there any way to register a callback on the activity listeners for sources that have been added to the
TracerProviderBuilder
?Beta Was this translation helpful? Give feedback.
All reactions