com.stackify.apm
@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface Trace
Add custom instrumentation to classes using the @Trace annotation. The annotation needs to be added to the class and the method to be instrumented. This is an alternative to adding a custom configuration file (stackify-apm.json) to your application.
import com.stackify.apm.Trace;
@Trace
public class ClassToBeInstrumented
{
@Trace
public void methodToBeInstrumented()
{
...
}
@Trace
public void anotherMethodToBeInstrumented()
{
...
}
public void notInstrumented()
{
...
}
}
Copyright © 2016 Stackify, LLC. All Rights Reserved.