Class OkHttpNetAttributesGetter
java.lang.Object
io.opentelemetry.instrumentation.okhttp.v3_0.internal.OkHttpNetAttributesGetter
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,okhttp3.Response>
public final class OkHttpNetAttributesGetter
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,okhttp3.Response>
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPeerName(okhttp3.Request request) getPeerPort(okhttp3.Request request) getProtocolName(okhttp3.Request request, okhttp3.Response response) getProtocolVersion(okhttp3.Request request, okhttp3.Response response) getTransport(okhttp3.Request request, okhttp3.Response response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter
getSockFamily, getSockPeerAddr, getSockPeerName, getSockPeerPort
-
Constructor Details
-
OkHttpNetAttributesGetter
public OkHttpNetAttributesGetter()
-
-
Method Details
-
getTransport
- Specified by:
getTransportin interfaceio.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getProtocolName
@Nullable public String getProtocolName(okhttp3.Request request, @Nullable okhttp3.Response response) - Specified by:
getProtocolNamein interfaceio.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getProtocolVersion
@Nullable public String getProtocolVersion(okhttp3.Request request, @Nullable okhttp3.Response response) - Specified by:
getProtocolVersionin interfaceio.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getPeerName
- Specified by:
getPeerNamein interfaceio.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getPeerPort
- Specified by:
getPeerPortin interfaceio.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,okhttp3.Response>
-