Class InstrumentationConfiguration
-
- All Implemented Interfaces:
public final class InstrumentationConfigurationType-safe config DSL that controls how instrumentation should behave.
-
-
Method Summary
Modifier and Type Method Description final Unitactivity(Function1<ActivityLifecycleConfiguration, Unit> configure)Configures activity lifecycle instrumentation. final Unitfragment(Function1<FragmentLifecycleConfiguration, Unit> configure)Configures fragment lifecycle instrumentation. final UnitanrReporter(Function1<AnrReporterConfiguration, Unit> configure)Configures ANR detection instrumentation. final UnitcrashReporter(Function1<CrashReporterConfiguration, Unit> configure)Configures crash reporting instrumentation. final UnitnetworkMonitoring(Function1<NetworkMonitoringConfiguration, Unit> configure)Configures network change instrumentation. final UnitslowRenderingReporter(Function1<SlowRenderingReporterConfiguration, Unit> configure)Configures slow render event instrumentation. final UnitscreenOrientation(Function1<ScreenOrientationConfiguration, Unit> configure)Configures screen orientation event instrumentation final Unitsuppressing(String instrumentationsToExclude)Suppresses the named instrumentations so they will not be installed at startup. final UnitdisableInstrumentationAutoDiscovery()Disables automatic discovery of instrumentations on the classpath. -
-
Method Detail
-
activity
final Unit activity(Function1<ActivityLifecycleConfiguration, Unit> configure)
Configures activity lifecycle instrumentation.
-
fragment
final Unit fragment(Function1<FragmentLifecycleConfiguration, Unit> configure)
Configures fragment lifecycle instrumentation.
-
anrReporter
final Unit anrReporter(Function1<AnrReporterConfiguration, Unit> configure)
Configures ANR detection instrumentation.
-
crashReporter
final Unit crashReporter(Function1<CrashReporterConfiguration, Unit> configure)
Configures crash reporting instrumentation.
-
networkMonitoring
final Unit networkMonitoring(Function1<NetworkMonitoringConfiguration, Unit> configure)
Configures network change instrumentation.
-
slowRenderingReporter
final Unit slowRenderingReporter(Function1<SlowRenderingReporterConfiguration, Unit> configure)
Configures slow render event instrumentation.
-
screenOrientation
final Unit screenOrientation(Function1<ScreenOrientationConfiguration, Unit> configure)
Configures screen orientation event instrumentation
-
suppressing
final Unit suppressing(String instrumentationsToExclude)
Suppresses the named instrumentations so they will not be installed at startup.
The values passed here must match the instrumentation names as exposed by AndroidInstrumentation.
-
disableInstrumentationAutoDiscovery
final Unit disableInstrumentationAutoDiscovery()
Disables automatic discovery of instrumentations on the classpath.
When disabled, classpath instrumentations will not be installed unless they are added programmatically (e.g., via the underlying RumBuilder/OpenTelemetryRumBuilder APIs).
-
-
-
-