Class MessagingAttributesExtractor<REQUEST,​RESPONSE>

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

    public abstract class MessagingAttributesExtractor<REQUEST,​RESPONSE>
    extends Object
    implements AttributesExtractor<REQUEST,​RESPONSE>
    Extractor of messaging attributes. Instrumentation of messaging frameworks/libraries should extend this class, defining MessagingAttributesExtractor and MessagingAttributesExtractor 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.