Class HttpServerAttributesExtractor<REQUEST,​RESPONSE>

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

    public final class HttpServerAttributesExtractor<REQUEST,​RESPONSE>
    extends Object
    Extractor of HTTP server attributes. Instrumentation of HTTP server frameworks should extend this class, defining HttpServerAttributesExtractor and HttpServerAttributesExtractor 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.