Class HttpAttributesExtractor<REQUEST,​RESPONSE>


  • public abstract class HttpAttributesExtractor<REQUEST,​RESPONSE>
    extends AttributesExtractor<REQUEST,​RESPONSE>
    Extractor of HTTP attributes. Instrumentation of HTTP server or client frameworks should extend this class, defining HttpAttributesExtractor and HttpAttributesExtractor 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.
    • Constructor Detail

      • HttpAttributesExtractor

        public HttpAttributesExtractor()