22 Dec 2021 06:49 AM - last edited on 03 Jan 2022 12:09 PM by MaciejNeumann
We have explicitly avoid capturing stacktrace in our Exception class using below -
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
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?
Solved! Go to Solution.
30 Mar 2022 04:53 PM
I would ensure your exception is set up as outlined in this doc and is valid. https://www.dynatrace.com/support/help/shortlink/service-error-detection#ignore-exceptions 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.
01 Apr 2022 05:35 AM
Hi,
The OneAgent is getting the stacktrace via the JVM tool interface. Therefore you cannot override it with custom Java code. See also: https://docs.oracle.com/javase/8/docs/platform/jvmti/jvmti.html#GetStackTrace
regards
Harry