Enum OkHttpAttributesGetter
java.lang.Object
java.lang.Enum<OkHttpAttributesGetter>
io.opentelemetry.instrumentation.okhttp.v3_0.internal.OkHttpAttributesGetter
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<okhttp3.Request,,okhttp3.Response> io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<okhttp3.Request,,okhttp3.Response> io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<okhttp3.Request,,okhttp3.Response> io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter<okhttp3.Request,,okhttp3.Response> io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<okhttp3.Request,,okhttp3.Response> Serializable,Comparable<OkHttpAttributesGetter>,java.lang.constant.Constable
public enum OkHttpAttributesGetter
extends Enum<OkHttpAttributesGetter>
implements io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetHttpRequestHeader(okhttp3.Request request, String name) getHttpRequestMethod(okhttp3.Request request) getHttpResponseHeader(okhttp3.Request request, okhttp3.Response response, String name) getHttpResponseStatusCode(okhttp3.Request request, okhttp3.Response response, Throwable error) getNetworkProtocolName(okhttp3.Request request, okhttp3.Response response) getNetworkProtocolVersion(okhttp3.Request request, okhttp3.Response response) getServerAddress(okhttp3.Request request) getServerPort(okhttp3.Request request) getUrlFull(okhttp3.Request request) static OkHttpAttributesGetterReturns the enum constant of this type with the specified name.static OkHttpAttributesGetter[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter
getNetworkType, getSockFamily, getTransportMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter
getNetworkTransportMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter
getServerInetSocketAddress, getServerSocketAddress, getServerSocketDomain, getServerSocketPort
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getHttpRequestMethod
- Specified by:
getHttpRequestMethodin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getUrlFull
- Specified by:
getUrlFullin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getHttpRequestHeader
- Specified by:
getHttpRequestHeaderin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getHttpResponseStatusCode
public Integer getHttpResponseStatusCode(okhttp3.Request request, okhttp3.Response response, @Nullable Throwable error) - Specified by:
getHttpResponseStatusCodein interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getHttpResponseHeader
public List<String> getHttpResponseHeader(okhttp3.Request request, okhttp3.Response response, String name) - Specified by:
getHttpResponseHeaderin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getNetworkProtocolName
@Nullable public String getNetworkProtocolName(okhttp3.Request request, @Nullable okhttp3.Response response) - Specified by:
getNetworkProtocolNamein interfaceio.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getNetworkProtocolVersion
@Nullable public String getNetworkProtocolVersion(okhttp3.Request request, @Nullable okhttp3.Response response) - Specified by:
getNetworkProtocolVersionin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getServerAddress
- Specified by:
getServerAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<okhttp3.Request,okhttp3.Response> - Specified by:
getServerAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<okhttp3.Request,okhttp3.Response>
-
getServerPort
- Specified by:
getServerPortin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpClientAttributesGetter<okhttp3.Request,okhttp3.Response> - Specified by:
getServerPortin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<okhttp3.Request,okhttp3.Response>
-