Class HttpClientAttributesExtractor<REQUEST,​RESPONSE>

  • All Implemented Interfaces:
    AttributesExtractor<REQUEST,​RESPONSE>

    public abstract class HttpClientAttributesExtractor<REQUEST,​RESPONSE>
    extends HttpCommonAttributesExtractor<REQUEST,​RESPONSE>
    Extractor of HTTP client attributes. Instrumentation of HTTP client frameworks should extend this class, defining HttpClientAttributesExtractor and HttpClientAttributesExtractor with the actual request / response types of the instrumented library. If an attribute is not available in this library, it is appropriate to return null from the protected attribute methods, but implement as many as possible for best compliance with the OpenTelemetry specification.