Package com.appoptics.api.ext
Annotation Type LogMethod
-
public @interface LogMethod
Logs execution of a method call using annotation. To add custom spans with annotation:-
Import the
com.appoptics.api.ext.LogMethod
annotation -
Annotate your method by adding
@LogMethod(layer="yourLayerName")
above it.
- See Also:
- Java Agent - Instrumentation SDK
-
Import the
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
backTrace
Flags whether method stack trace should be included in the eventjava.lang.String
layer
Sets the layer name for the custom span, this is optionalboolean
reportExceptions
Flags whether exceptions thrown by this method would be reportedboolean
storeReturn
Flags whether method result will be converted to string and stored in the event
-