Class ActivityLifecycleConfiguration

  • All Implemented Interfaces:
    io.opentelemetry.android.agent.dsl.instrumentation.CanBeEnabledAndDisabled , io.opentelemetry.android.agent.dsl.instrumentation.ScreenLifecycleConfigurable

    
    public final class ActivityLifecycleConfiguration
     implements ScreenLifecycleConfigurable, CanBeEnabledAndDisabled
                        

    Type-safe config DSL that controls how activity lifecycle instrumentation should behave.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit tracerCustomizer(Function1<Tracer, Tracer> value) Sets a function that can be used to customize the trace.
      Unit screenNameExtractor(ScreenNameExtractor value) Defines how screen names should be extracted.
      Unit enabled(Boolean enabled) Controls whether this feature is enabled or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • tracerCustomizer

         Unit tracerCustomizer(Function1<Tracer, Tracer> value)

        Sets a function that can be used to customize the trace.

      • screenNameExtractor

         Unit screenNameExtractor(ScreenNameExtractor value)

        Defines how screen names should be extracted.