Class DbAttributesExtractor<REQUEST>

  • Direct Known Subclasses:
    SqlAttributesExtractor

    public abstract class DbAttributesExtractor<REQUEST>
    extends AttributesExtractor<REQUEST,​Void>
    Extractor of database attributes. Instrumentations of database libraries should extend this class, defining DbAttributesExtractor with the actual request type 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

      • DbAttributesExtractor

        public DbAttributesExtractor()