We have explicitly avoid capturing stacktrace in our Exception class using below -
<span>@Override<br></span><span>public synchronized </span>Throwable <span>fillInStackTrace</span>() {<br> <span>return this;<br></span>}
But still Dynatrace capture the entire stacktrace whereas we think it should not and show only the message rather than full stack trace.
Can anyone provide more insight on that?
I would ensure your exception is set up as outlined in this doc and is valid. Configure service failure detection in Service Detection v1 — Dynatrace Docs If it is still capturing after that, then a support ticket would be you best option to get this sorted as this is not intended functionality.
Hi,
The OneAgent is getting the stacktrace via the JVM tool interface. Therefore you cannot override it with custom Java code. See also: JVM(TM) Tool Interface 1.2.3
regards
Harry