Interface HttpClientAttributesGetter<REQUEST,RESPONSE>
-
- All Superinterfaces:
HttpCommonAttributesGetter<REQUEST,RESPONSE>
public interface HttpClientAttributesGetter<REQUEST,RESPONSE> extends HttpCommonAttributesGetter<REQUEST,RESPONSE>
An interface for getting HTTP client attributes.Instrumentation authors will create implementations of this interface for their specific library/framework. It will be used by the
HttpClientAttributesExtractorto obtain the various HTTP client attributes in a type-generic way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringflavor(REQUEST request, RESPONSE response)Extracts thehttp.flavorspan attribute.Stringurl(REQUEST request)-
Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter
method, requestContentLength, requestContentLengthUncompressed, requestHeader, responseContentLength, responseContentLengthUncompressed, responseHeader, statusCode
-
-