Package 

Class DatadogEventListener.Factory

  • All Implemented Interfaces:
    okhttp3.EventListener.Factory

    
    public final class DatadogEventListener.Factory
     implements EventListener.Factory
                        

    Datadog's RUM implementation of OkHttp EventListener.Factory. Adding this Factory to your OkHttpClient will allow Datadog 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 DatadogInterceptor())
        .eventListenerFactory(new DatadogEventListener.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

      • DatadogEventListener.Factory

        DatadogEventListener.Factory()
    • Method Detail

      • create

         EventListener create(Call call)