I am trying to configure the Dynatrace to ignore different exceptions and I wonder:
Is it possible to use wildcard matching to specify different kinds of exceptions to be ignored? For instance, can I tell the Dynatrace to ignore all exceptions having the same package prefix?
Can I do the same for Custom handled exceptions, or I would need to specify the complete list of exceptions.
I tried to specify the base exception class of all my business exceptions as a one to be ignored, but it had no effect on the monitored exceptions.
Solved! Go to Solution.
In my experience, you will have to specify the full class name for each exception you want to ignore including for custom handled exceptions. I do recommend creating a request for enhancement for this to be able to set this using regex rules or if the class contains,ends with, begins with etc.
After talking to our team, we realized it would be quite tedious to enumerate all possible exceptions to be ignored: we are talking about tens, if not hundreds of different exceptions. Is there any strategy that could make our life easier?
Thank you in advance for your support!
It turned out that you can use package prefix to filter all exceptions from that package. For instance, if you ignore the value of java.lang, you will ignore all exceptions having that package prefix: java.lang.Runtime, java.lang.anything.SomeException, etc.