Package 

Class OpenObserveEventListener.Factory

  • All Implemented Interfaces:
    okhttp3.EventListener.Factory

    
    public final class OpenObserveEventListener.Factory
     implements EventListener.Factory
                        

    OpenObserve's RUM implementation of OkHttp EventListener.Factory. Adding this Factory to your OkHttpClient will allow OpenObserve to monitor timing information for your requests (DNS resolution, TTFB, …).

    The timing information will be appended to the relevant RUM Resource events.

    To use:

    OkHttpClient client = new OkHttpClient.Builder()
        .addInterceptor(new OpenObserveInterceptor())
        .eventListenerFactory(new OpenObserveEventListener.Factory())
        .build();
    • Method Summary

      Modifier and Type Method Description
      EventListener create(Call call)
      • Methods inherited from class java.lang.Object

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

      • OpenObserveEventListener.Factory

        OpenObserveEventListener.Factory(String sdkInstanceName)
        Parameters:
        sdkInstanceName - SDK instance name to bind to, or null to check the default instance.
    • Method Detail

      • create

         EventListener create(Call call)