Interface OpenTelemetryRum

  • All Implemented Interfaces:

    
    public interface OpenTelemetryRum
    
                        

    Entrypoint for the OpenTelemetry Real User Monitoring library for Android.

    • 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
      abstract Unit emitEvent(String eventName, String body, Attributes attributes) Emits an event with the specified name, body, and attributes.
      abstract Unit shutdown() Initiates orderly shutdown of this OpenTelemetryRum instance.
      abstract OpenTelemetry getOpenTelemetry() Get a handle to the instance of the OpenTelemetry API that this instance is using for instrumentation.
      abstract SessionProvider getSessionProvider() Get the SessionProvider associated with this instance.
      abstract Clock getClock() Get the Clock used by this instance for time-related operations.
      • Methods inherited from class java.lang.Object

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

    • 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.