Exception counts for thrown exception classes #1385
Replies: 2 comments
-
just to understand your goal: you want to know the amount of exception thrown? That should be possible by using a specific configuration. As you mentioned, you could instrument the exception constructor and count the amount objects created. But tracking the constructor invocation does not mean that the exception is actually be thrown. The performance overhead should not be a problem, i would say. |
Beta Was this translation helpful? Give feedback.
-
Hi @mariusoe, yes, correct. At the end, I want to see the (thrown) exceptions. Similar to the SQL Browser from inspectIT. As you said, it is probably not as easy as counting constructor calls. Probably, it should be done as 'derived' metric during tracing. It looks like that the Exception Sensor from inspectIT also worked on traces. |
Beta Was this translation helpful? Give feedback.
-
Is it possible with the standard instrumentation to track exceptions by class as metrics? I haven't found something in the documentation and in the default instrumentation.
Potentially a constructor instrumentation on Throwable should be the trick? Not sure how this would negatively affect application performance.
Any hints or opinions?
Beta Was this translation helpful? Give feedback.
All reactions