-
public final class MethodTrackingConfigConfiguration for method-level tracking functionality. This controls how @Track annotated methods are processed and handled.
-
-
Field Summary
Fields Modifier and Type Field Description private Booleanenabledprivate Function1<Throwable, Unit>errorHandlerprivate final <ERROR CLASS>customSerializers
-
Constructor Summary
Constructors Constructor Description MethodTrackingConfig()
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()Whether method tracking is enabled. final UnitsetEnabled(Boolean enabled)Whether method tracking is enabled. final Function1<Throwable, Unit>getErrorHandler()Custom error handler for method tracking failures. final UnitsetErrorHandler(Function1<Throwable, Unit> errorHandler)Custom error handler for method tracking failures. final <ERROR CLASS>getCustomSerializers()Custom parameter serializers for method parameters. -
-
Method Detail
-
getEnabled
final Boolean getEnabled()
Whether method tracking is enabled. When false, @Track annotations are ignored. Default: true
-
setEnabled
final Unit setEnabled(Boolean enabled)
Whether method tracking is enabled. When false, @Track annotations are ignored. Default: true
-
getErrorHandler
final Function1<Throwable, Unit> getErrorHandler()
Custom error handler for method tracking failures. If not set, errors are silently ignored to prevent app crashes.
-
setErrorHandler
final Unit setErrorHandler(Function1<Throwable, Unit> errorHandler)
Custom error handler for method tracking failures. If not set, errors are silently ignored to prevent app crashes.
-
getCustomSerializers
final <ERROR CLASS> getCustomSerializers()
Custom parameter serializers for method parameters. These are checked in addition to the built-in serializers.
-
-
-
-