cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Capturing Exception StackTraces

pankajchugh
Newcomer

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?

2 REPLIES 2

ChadTurner
DynaMight Legend
DynaMight Legend

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. 

-Chad

harald_berger
Dynatrace Champion
Dynatrace Champion

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

Featured Posts