1. A computer implemented method comprising: identifying a call of interest having an associated failure condition, wherein the call of interest includes one or more of a system call and a library call; identifying an invocation path associated with the call of interest, wherein the invocation path includes a Java boundary crossover method having a Java application programming interface (API) call to a Java native interface (JNI) call and a native method call to the call of interest; detecting an execution of the crossover method; comparing an execution stack to the invocation path in response to the execution of the crossover method; and setting a trace flag if the execution stack satisfies a condition with respect to the invocation path to output trace information that is associated with the call of interest, wherein the trace flag corresponds to a thread associated with the execution of the crossover method.