-
- All Implemented Interfaces:
-
okhttp3.EventListener.Factory
public final class DatadogEventListener.Factory implements EventListener.FactoryDatadog'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();
-
-
Constructor Summary
Constructors Constructor Description DatadogEventListener.Factory()
-