-
public class OtelRumConfigConfiguration object for OpenTelemetry Android. The configuration items in this class will be used in the OpenTelemetryRumBuilder to wire up and enable/disable various mobile instrumentation components.
-
-
Field Summary
Fields Modifier and Type Field Description private Supplier<Attributes>globalAttributesSupplierprivate DiskBufferingConfigurationdiskBufferingConfigurationprivate DurationslowRenderingDetectionPollInterval
-
Method Summary
Modifier and Type Method Description Supplier<Attributes>getGlobalAttributesSupplier()DiskBufferingConfigurationgetDiskBufferingConfiguration()OtelRumConfigsetDiskBufferingConfiguration(DiskBufferingConfiguration diskBufferingConfiguration)Sets the parameters for caching signals in disk in order to export them later. DurationgetSlowRenderingDetectionPollInterval()Returns the Duration at which slow renders are polled. OtelRumConfigsetSlowRenderingDetectionPollInterval(Duration duration)Call this to configure the duration for polling for slow renders. OtelRumConfigsetGlobalAttributes(Attributes attributes)Configures the set of global attributes to emit with every span and event. OtelRumConfigsetGlobalAttributes(Supplier<Attributes> globalAttributesSupplier)booleanhasGlobalAttributes()OtelRumConfigdisableNetworkAttributes()Disables the collection of runtime network attributes. booleanshouldIncludeNetworkAttributes()Returns true if runtime network attributes are enabled, false otherwise. OtelRumConfigdisableSdkInitializationEvents()Disables the collection of events related to the initialization of the OTel Android SDKitself. booleanshouldGenerateSdkInitializationEvents()Returns true if the SDK is configured to generate initialization events, false otherwise. OtelRumConfigdisableScreenAttributes()Call this to disable the collection of screen attributes. booleanshouldIncludeScreenAttributes()Return true if the SDK should be configured to report screen attributes. OtelRumConfigdisableNetworkChangeMonitoring()Sets the configuration so that network change monitoring, which is enabled by default, willnot be started. booleanisNetworkChangeMonitoringEnabled()Returns true if network change monitoring is enabled (default = true). booleanisAnrDetectionEnabled()Returns true if ANR (application not responding) detection is enabled (default = true). OtelRumConfigdisableAnrDetection()Call this method to disable ANR (application not responding) detection. booleanisSlowRenderingDetectionEnabled()Returns true if the slow rendering detection instrumentation is enabled. OtelRumConfigdisableSlowRenderingDetection()Call this method to disable the slow rendering detection instrumentation. booleanisCrashReportingEnabled()Returns true if crash reporting is enabled. OtelRumConfigdisableCrashReporting()Call this method to disable crash reporting. -
-
Method Detail
-
getGlobalAttributesSupplier
Supplier<Attributes> getGlobalAttributesSupplier()
-
getDiskBufferingConfiguration
DiskBufferingConfiguration getDiskBufferingConfiguration()
-
setDiskBufferingConfiguration
OtelRumConfig setDiskBufferingConfiguration(DiskBufferingConfiguration diskBufferingConfiguration)
Sets the parameters for caching signals in disk in order to export them later.
-
getSlowRenderingDetectionPollInterval
Duration getSlowRenderingDetectionPollInterval()
Returns the Duration at which slow renders are polled. Default = 1s.
-
setSlowRenderingDetectionPollInterval
OtelRumConfig setSlowRenderingDetectionPollInterval(Duration duration)
Call this to configure the duration for polling for slow renders.
-
setGlobalAttributes
OtelRumConfig setGlobalAttributes(Attributes attributes)
Configures the set of global attributes to emit with every span and event. Any existingconfigured attributes will be dropped. Default = none.
-
setGlobalAttributes
OtelRumConfig setGlobalAttributes(Supplier<Attributes> globalAttributesSupplier)
-
hasGlobalAttributes
boolean hasGlobalAttributes()
-
disableNetworkAttributes
OtelRumConfig disableNetworkAttributes()
Disables the collection of runtime network attributes. See CurrentNetworkProvider formore information. Default = true.
-
shouldIncludeNetworkAttributes
boolean shouldIncludeNetworkAttributes()
Returns true if runtime network attributes are enabled, false otherwise.
-
disableSdkInitializationEvents
OtelRumConfig disableSdkInitializationEvents()
Disables the collection of events related to the initialization of the OTel Android SDKitself. Default = true.
-
shouldGenerateSdkInitializationEvents
boolean shouldGenerateSdkInitializationEvents()
Returns true if the SDK is configured to generate initialization events, false otherwise.
-
disableScreenAttributes
OtelRumConfig disableScreenAttributes()
Call this to disable the collection of screen attributes. See for more information. Default = true.
-
shouldIncludeScreenAttributes
boolean shouldIncludeScreenAttributes()
Return true if the SDK should be configured to report screen attributes.
-
disableNetworkChangeMonitoring
OtelRumConfig disableNetworkChangeMonitoring()
Sets the configuration so that network change monitoring, which is enabled by default, willnot be started.
-
isNetworkChangeMonitoringEnabled
boolean isNetworkChangeMonitoringEnabled()
Returns true if network change monitoring is enabled (default = true).
-
isAnrDetectionEnabled
boolean isAnrDetectionEnabled()
Returns true if ANR (application not responding) detection is enabled (default = true).
-
disableAnrDetection
OtelRumConfig disableAnrDetection()
Call this method to disable ANR (application not responding) detection.
-
isSlowRenderingDetectionEnabled
boolean isSlowRenderingDetectionEnabled()
Returns true if the slow rendering detection instrumentation is enabled.
-
disableSlowRenderingDetection
OtelRumConfig disableSlowRenderingDetection()
Call this method to disable the slow rendering detection instrumentation.
-
isCrashReportingEnabled
boolean isCrashReportingEnabled()
Returns true if crash reporting is enabled.
-
disableCrashReporting
OtelRumConfig disableCrashReporting()
Call this method to disable crash reporting.
-
-
-
-