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 HttpClientAttributesExtractor to obtain the
various HTTP client attributes in a type-generic way.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringDeprecated.default StringExtracts thehttp.flavorspan attribute.default Stringdefault StringDeprecated.UsegetUrl(Object)instead.Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter
getMethod, getRequestHeader, getResponseHeader, getStatusCode, method, requestHeader, responseHeader, statusCode
-
Method Details
-
getUrl
-
url
Deprecated.UsegetUrl(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getFlavor
Extracts thehttp.flavorspan attribute.This is called from
Instrumenter.end(Context, Object, Object, Throwable), whetherresponseisnullor not. -
flavor
Deprecated.Extracts thehttp.flavorspan attribute.This is called from
Instrumenter.end(Context, Object, Object, Throwable), whetherresponseisnullor not.This method is deprecated and will be removed in the subsequent release.
-
getFlavor(Object, Object).