Package 

Class MethodTrackingConfig


  • 
    public final class MethodTrackingConfig
    
                        

    Configuration for method-level tracking functionality. This controls how @Track annotated methods are processed and handled.

    • Constructor Detail

      • MethodTrackingConfig

        MethodTrackingConfig()
    • 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.