@NonNullApi @NonNullFields public class OkHttpMetricsEventListener extends okhttp3.EventListener
Modifier and Type | Class and Description |
---|---|
static class |
OkHttpMetricsEventListener.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
URI_PATTERN |
Modifier and Type | Method and Description |
---|---|
static OkHttpMetricsEventListener.Builder |
builder(MeterRegistry registry,
java.lang.String name) |
void |
callFailed(okhttp3.Call call,
java.io.IOException e) |
void |
callStart(okhttp3.Call call) |
void |
requestHeadersEnd(okhttp3.Call call,
okhttp3.Request request) |
void |
responseHeadersEnd(okhttp3.Call call,
okhttp3.Response response) |
callEnd, connectEnd, connectFailed, connectionAcquired, connectionReleased, connectStart, dnsEnd, dnsStart, requestBodyEnd, requestBodyStart, requestHeadersStart, responseBodyEnd, responseBodyStart, responseHeadersStart, secureConnectEnd, secureConnectStart
public static final java.lang.String URI_PATTERN
public static OkHttpMetricsEventListener.Builder builder(MeterRegistry registry, java.lang.String name)
public void callStart(okhttp3.Call call)
callStart
in class okhttp3.EventListener
public void requestHeadersEnd(okhttp3.Call call, okhttp3.Request request)
requestHeadersEnd
in class okhttp3.EventListener
public void callFailed(okhttp3.Call call, java.io.IOException e)
callFailed
in class okhttp3.EventListener
public void responseHeadersEnd(okhttp3.Call call, okhttp3.Response response)
responseHeadersEnd
in class okhttp3.EventListener