Interface MethodTracerFactory


  • public interface MethodTracerFactory
    Deprecated.
    A MethodTracerFactory is called when an instrumented method is invoked. The MethodTracerFactory is registered using an instrumentation extension file. Implementations of this interface must have a public default constructor.
    • Method Detail

      • methodInvoked

        MethodTracer methodInvoked​(java.lang.String methodName,
                                   java.lang.Object invocationTarget,
                                   java.lang.Object[] arguments)
        Deprecated.
        Called when an instrumented method is invoked. This method can optionally return a method tracer to be notified when the method invocation finishes (otherwise return null).
        Parameters:
        methodName - The name of the traced method being invoked.
        invocationTarget - The object being invoked.
        arguments - The method arguments.
        Returns:
        Can return a method tracer to be notified when a method invocation finishes, else returns null.
        Since:
        2.3.0