Package io.opentelemetry.android
Interface OpenTelemetryRum
-
- All Implemented Interfaces:
public interface OpenTelemetryRumEntrypoint for the OpenTelemetry Real User Monitoring library for Android.
-
-
Method Summary
Modifier and Type Method Description abstract UnitemitEvent(String eventName, String body, Attributes attributes)Emits an event with the specified name, body, and attributes. abstract Unitshutdown()Initiates orderly shutdown of this OpenTelemetryRum instance. abstract OpenTelemetrygetOpenTelemetry()Get a handle to the instance of the OpenTelemetry API that this instance is using for instrumentation. abstract SessionProvidergetSessionProvider()Get the SessionProvider associated with this instance. abstract ClockgetClock()Get the Clock used by this instance for time-related operations. -
-
Method Detail
-
emitEvent
abstract Unit emitEvent(String eventName, String body, Attributes attributes)
Emits an event with the specified name, body, and attributes.
Implementations of this method should define how the event is handled and recorded.
- Parameters:
eventName- The name of the event to emit.body- The body of the event, typically containing additional data.attributes- The attributes associated with the event, providing metadata.
-
shutdown
abstract Unit shutdown()
Initiates orderly shutdown of this OpenTelemetryRum instance. After this method completes, the instance should be considered invalid and no longer used.
-
getOpenTelemetry
abstract OpenTelemetry getOpenTelemetry()
Get a handle to the instance of the OpenTelemetry API that this instance is using for instrumentation.
-
getSessionProvider
abstract SessionProvider getSessionProvider()
Get the SessionProvider associated with this instance.
-
getClock
abstract Clock getClock()
Get the Clock used by this instance for time-related operations.
-
-
-
-