Class DefaultHttpServerAttributesExtractor
java.lang.Object
io.micrometer.tracing.otel.bridge.DefaultHttpServerAttributesExtractor
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,,io.micrometer.tracing.http.HttpServerResponse> io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,,io.micrometer.tracing.http.HttpServerResponse> io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,,io.micrometer.tracing.http.HttpServerResponse> io.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,,io.micrometer.tracing.http.HttpServerResponse> io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,,io.micrometer.tracing.http.HttpServerResponse> io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,,io.micrometer.tracing.http.HttpServerResponse> io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>
@Deprecated
public class DefaultHttpServerAttributesExtractor
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
Deprecated.
scheduled for removal in 1.4.0
Extracts OpenTelemetry http semantic attributes value for server http spans.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlavor(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry.getHttpRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name) Deprecated.getHttpRequestMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.getHttpResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name) Deprecated.getHttpResponseStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, Throwable error) Deprecated.getHttpRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.getMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry.getRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name) Deprecated.This method was removed from OpenTelemetry.getResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name) Deprecated.This method was removed from OpenTelemetry.getRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry.getScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry.getStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, Throwable error) Deprecated.This method was removed from OpenTelemetry.getTarget(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry.getUrlPath(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.getUrlQuery(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.getUrlScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.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.network.ClientAttributesGetter
getClientAddress, getClientPortMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter
getErrorTypeMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter
getServerAddress, getServerPortMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter
getClientInetSocketAddress, getClientSocketAddress, getClientSocketPort, getNetworkType, getServerInetSocketAddress, getServerSocketAddress, getServerSocketPort, getSockFamily, getTransportMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter
getNetworkLocalAddress, getNetworkLocalInetSocketAddress, getNetworkLocalPort, getNetworkPeerAddress, getNetworkPeerInetSocketAddress, getNetworkPeerPort, getNetworkProtocolName, getNetworkProtocolVersion, getNetworkTransportMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter
getServerSocketDomain
-
Constructor Details
-
DefaultHttpServerAttributesExtractor
public DefaultHttpServerAttributesExtractor()Deprecated.
-
-
Method Details
-
getFlavor
@Nullable @Deprecated public String getFlavor(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry. It should not be used since always returned null in Micrometer Tracing. -
getUrlPath
Deprecated.- Specified by:
getUrlPathin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse> - Specified by:
getUrlPathin interfaceio.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>
-
getUrlQuery
Deprecated.- Specified by:
getUrlQueryin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse> - Specified by:
getUrlQueryin interfaceio.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>
-
getTarget
@Nullable @Deprecated public String getTarget(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry. Please usegetUrlPath(HttpServerRequest)andgetUrlQuery(HttpServerRequest)instead. -
getHttpRoute
@Nullable public String getHttpRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.- Specified by:
getHttpRoutein interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
-
getRoute
@Nullable @Deprecated public String getRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry. Please usegetHttpRoute(HttpServerRequest)instead. -
getUrlScheme
@Nullable public String getUrlScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.- Specified by:
getUrlSchemein interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse> - Specified by:
getUrlSchemein interfaceio.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>
-
getScheme
@Nullable @Deprecated public String getScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry. Please usegetUrlScheme(HttpServerRequest)instead. -
getHttpRequestMethod
@Nullable public String getHttpRequestMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.- Specified by:
getHttpRequestMethodin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
-
getMethod
@Nullable @Deprecated public String getMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest) Deprecated.This method was removed from OpenTelemetry. Please usegetHttpRequestMethod(HttpServerRequest)instead. -
getHttpRequestHeader
public List<String> getHttpRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name) Deprecated.- Specified by:
getHttpRequestHeaderin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
-
getRequestHeader
@Deprecated public List<String> getRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name) Deprecated.This method was removed from OpenTelemetry. Please usegetHttpRequestHeader(HttpServerRequest, String)instead. -
getHttpResponseStatusCode
@Nullable public Integer getHttpResponseStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, @Nullable Throwable error) Deprecated.- Specified by:
getHttpResponseStatusCodein interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
-
getStatusCode
@Nullable @Deprecated public Integer getStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, Throwable error) Deprecated.This method was removed from OpenTelemetry. Please usegetHttpResponseStatusCode(HttpServerRequest, HttpServerResponse, Throwable)instead. -
getHttpResponseHeader
public List<String> getHttpResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name) Deprecated.- Specified by:
getHttpResponseHeaderin interfaceio.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
-
getResponseHeader
@Deprecated public List<String> getResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name) Deprecated.This method was removed from OpenTelemetry. Please usegetHttpResponseHeader(HttpServerRequest, HttpServerResponse, String)instead.
-