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
HttpServerAttributesExtractorto obtain the various HTTP server attributes in a type-generic way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringflavor(REQUEST request)Stringroute(REQUEST request)Stringscheme(REQUEST request)StringserverName(REQUEST request, RESPONSE response)Extracts thehttp.server_namespan attribute.Stringtarget(REQUEST request)-
Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter
method, requestContentLength, requestContentLengthUncompressed, requestHeader, responseContentLength, responseContentLengthUncompressed, responseHeader, statusCode
-
-