We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Stable probes use org.openjdk.btrace.core.annotations:
org.openjdk.btrace.core.annotations
import org.openjdk.btrace.core.annotations.*;
@BTrace
@OnMethod
@OnTimer
@OnEvent
@OnExit
@Sampled
@Level
@ProbeClassName
@ProbeMethodName
@Duration
@Return
@Self
@TargetInstance
For the complete annotation reference, locations, filters, and argument rules, see the stable-release documentation.
@BTrace public class SlowMethods { @OnMethod( clazz = "com.example.OrderService", method = "*", location = @Location(Kind.RETURN)) public static void onReturn( @ProbeMethodName String method, @Duration long duration) { if (duration > 200_000_000L) { println(method); } } }