Interface HttpServerAttributesGetter<REQUEST,RESPONSE>
- All Superinterfaces:
HttpCommonAttributesGetter<REQUEST,RESPONSE>
public interface HttpServerAttributesGetter<REQUEST,RESPONSE>
extends HttpCommonAttributesGetter<REQUEST,RESPONSE>
An interface for getting HTTP server attributes.
Instrumentation authors will create implementations of this interface for their specific
library/framework. It will be used by the HttpServerAttributesExtractor to obtain the
various HTTP server attributes in a type-generic way.
-
Method Summary
Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter
method, requestHeader, responseHeader, statusCode
-
Method Details
-
flavor
-
target
-
route
-
scheme
-
serverName
Deprecated.This method is deprecated and will be removed in the next release.The primary server name of the matched virtual host. This should be obtained via configuration, not from the Host header. If no such configuration can be obtained, this method should returnnull.
-