Annotation Type LogMethod


  • public @interface LogMethod
    Logs execution of a method call using annotation. To add custom spans with annotation:

    1. Import the com.appoptics.api.ext.LogMethod annotation
    2. Annotate your method by adding @LogMethod(layer="yourLayerName") above it.

    See Also:
    Java Agent - Instrumentation SDK
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean backTrace
      Flags whether method stack trace should be included in the event
      java.lang.String layer
      Sets the layer name for the custom span, this is optional
      boolean reportExceptions
      Flags whether exceptions thrown by this method would be reported
      boolean storeReturn
      Flags whether method result will be converted to string and stored in the event
    • Element Detail

      • layer

        java.lang.String layer
        Sets the layer name for the custom span, this is optional
        Returns:
        Default:
        ""
      • backTrace

        boolean backTrace
        Flags whether method stack trace should be included in the event
        Returns:
        Default:
        false
      • storeReturn

        boolean storeReturn
        Flags whether method result will be converted to string and stored in the event
        Returns:
        Default:
        false
      • reportExceptions

        boolean reportExceptions
        Flags whether exceptions thrown by this method would be reported
        Returns:
        Default:
        true