-
- All Implemented Interfaces:
-
okhttp3.EventListener.Factory
public final class OpenObserveEventListener.Factory implements EventListener.FactoryOpenObserve'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();
-
-
Constructor Summary
Constructors Constructor Description OpenObserveEventListener.Factory(String sdkInstanceName)
-
Method Summary
Modifier and Type Method Description EventListenercreate(Call call)
-