Enum JavaHttpClientAttributesGetter
java.lang.Object
java.lang.Enum<JavaHttpClientAttributesGetter>
io.opentelemetry.instrumentation.httpclient.internal.JavaHttpClientAttributesGetter
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<java.net.http.HttpRequest,,java.net.http.HttpResponse<?>> io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<java.net.http.HttpRequest,,java.net.http.HttpResponse<?>> io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<java.net.http.HttpRequest,,java.net.http.HttpResponse<?>> io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<java.net.http.HttpRequest>,Serializable,Comparable<JavaHttpClientAttributesGetter>,java.lang.constant.Constable
public enum JavaHttpClientAttributesGetter
extends Enum<JavaHttpClientAttributesGetter>
implements io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
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(java.net.http.HttpRequest httpRequest, String name) getHttpRequestMethod(java.net.http.HttpRequest httpRequest) getHttpResponseHeader(java.net.http.HttpRequest httpRequest, java.net.http.HttpResponse<?> httpResponse, String name) getHttpResponseStatusCode(java.net.http.HttpRequest httpRequest, java.net.http.HttpResponse<?> httpResponse, Throwable error) getNetworkProtocolName(java.net.http.HttpRequest request, java.net.http.HttpResponse<?> response) getNetworkProtocolVersion(java.net.http.HttpRequest request, java.net.http.HttpResponse<?> response) getServerAddress(java.net.http.HttpRequest request) getServerPort(java.net.http.HttpRequest request) getUrlFull(java.net.http.HttpRequest httpRequest) Returns the enum constant of this type with the specified name.static JavaHttpClientAttributesGetter[]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.semconv.http.HttpCommonAttributesGetter
getErrorTypeMethods inherited from interface io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter
getNetworkLocalAddress, getNetworkLocalInetSocketAddress, getNetworkLocalPort, getNetworkPeerAddress, getNetworkPeerInetSocketAddress, getNetworkPeerPort, getNetworkTransport, getNetworkType
-
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.semconv.http.HttpCommonAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
-
getUrlFull
- Specified by:
getUrlFullin interfaceio.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
-
getHttpRequestHeader
- Specified by:
getHttpRequestHeaderin interfaceio.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
-
getHttpResponseStatusCode
public Integer getHttpResponseStatusCode(java.net.http.HttpRequest httpRequest, java.net.http.HttpResponse<?> httpResponse, @Nullable Throwable error) - Specified by:
getHttpResponseStatusCodein interfaceio.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
-
getHttpResponseHeader
public List<String> getHttpResponseHeader(java.net.http.HttpRequest httpRequest, java.net.http.HttpResponse<?> httpResponse, String name) - Specified by:
getHttpResponseHeaderin interfaceio.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
-
getNetworkProtocolName
@Nullable public String getNetworkProtocolName(java.net.http.HttpRequest request, @Nullable java.net.http.HttpResponse<?> response) - Specified by:
getNetworkProtocolNamein interfaceio.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
-
getNetworkProtocolVersion
@Nullable public String getNetworkProtocolVersion(java.net.http.HttpRequest request, @Nullable java.net.http.HttpResponse<?> response) - Specified by:
getNetworkProtocolVersionin interfaceio.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>>
-
getServerAddress
- Specified by:
getServerAddressin interfaceio.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>> - Specified by:
getServerAddressin interfaceio.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<java.net.http.HttpRequest>
-
getServerPort
- Specified by:
getServerPortin interfaceio.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<java.net.http.HttpRequest,java.net.http.HttpResponse<?>> - Specified by:
getServerPortin interfaceio.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<java.net.http.HttpRequest>
-