Class ServletHttpAttributesGetter<REQUEST,RESPONSE>
java.lang.Object
io.opentelemetry.javaagent.instrumentation.servlet.ServletHttpAttributesGetter<REQUEST,RESPONSE>
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<ServletRequestContext<REQUEST>,,ServletResponseContext<RESPONSE>> io.opentelemetry.instrumentation.api.semconv.http.HttpServerAttributesGetter<ServletRequestContext<REQUEST>,,ServletResponseContext<RESPONSE>> io.opentelemetry.instrumentation.api.semconv.network.ClientAttributesGetter<ServletRequestContext<REQUEST>>,io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<ServletRequestContext<REQUEST>,,ServletResponseContext<RESPONSE>> io.opentelemetry.instrumentation.api.semconv.url.UrlAttributesGetter<ServletRequestContext<REQUEST>>
public class ServletHttpAttributesGetter<REQUEST,RESPONSE>
extends Object
implements io.opentelemetry.instrumentation.api.semconv.http.HttpServerAttributesGetter<ServletRequestContext<REQUEST>,ServletResponseContext<RESPONSE>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHttpRequestHeader(ServletRequestContext<REQUEST> requestContext, String name) getHttpRequestMethod(ServletRequestContext<REQUEST> requestContext) getHttpResponseHeader(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> responseContext, String name) getHttpResponseStatusCode(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> responseContext, Throwable error) getNetworkLocalAddress(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> response) getNetworkLocalPort(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> response) getNetworkPeerAddress(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> response) getNetworkPeerPort(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> response) getNetworkProtocolName(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> responseContext) getNetworkProtocolVersion(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> responseContext) getUrlPath(ServletRequestContext<REQUEST> requestContext) getUrlQuery(ServletRequestContext<REQUEST> requestContext) getUrlScheme(ServletRequestContext<REQUEST> requestContext) 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.semconv.network.ClientAttributesGetter
getClientAddress, getClientPortMethods inherited from interface io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter
getErrorTypeMethods inherited from interface io.opentelemetry.instrumentation.api.semconv.http.HttpServerAttributesGetter
getHttpRouteMethods inherited from interface io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter
getNetworkLocalInetSocketAddress, getNetworkPeerInetSocketAddress, getNetworkTransport, getNetworkType
-
Field Details
-
accessor
-
-
Constructor Details
-
ServletHttpAttributesGetter
-
-
Method Details
-
getHttpRequestMethod
-
getUrlScheme
-
getUrlPath
-
getUrlQuery
-
getHttpRequestHeader
public List<String> getHttpRequestHeader(ServletRequestContext<REQUEST> requestContext, String name) -
getHttpResponseStatusCode
@Nullable public Integer getHttpResponseStatusCode(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> responseContext, @Nullable Throwable error) -
getHttpResponseHeader
public List<String> getHttpResponseHeader(ServletRequestContext<REQUEST> requestContext, ServletResponseContext<RESPONSE> responseContext, String name) -
getNetworkProtocolName
@Nullable public String getNetworkProtocolName(ServletRequestContext<REQUEST> requestContext, @Nullable ServletResponseContext<RESPONSE> responseContext) -
getNetworkProtocolVersion
@Nullable public String getNetworkProtocolVersion(ServletRequestContext<REQUEST> requestContext, @Nullable ServletResponseContext<RESPONSE> responseContext) -
getNetworkPeerAddress
@Nullable public String getNetworkPeerAddress(ServletRequestContext<REQUEST> requestContext, @Nullable ServletResponseContext<RESPONSE> response) -
getNetworkPeerPort
@Nullable public Integer getNetworkPeerPort(ServletRequestContext<REQUEST> requestContext, @Nullable ServletResponseContext<RESPONSE> response) -
getNetworkLocalAddress
@Nullable public String getNetworkLocalAddress(ServletRequestContext<REQUEST> requestContext, @Nullable ServletResponseContext<RESPONSE> response) -
getNetworkLocalPort
@Nullable public Integer getNetworkLocalPort(ServletRequestContext<REQUEST> requestContext, @Nullable ServletResponseContext<RESPONSE> response)
-