Class DbAttributesExtractor<REQUEST>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,Void>
-
- io.opentelemetry.instrumentation.api.instrumenter.db.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, definingDbAttributesExtractorwith the actual request type of the instrumented library. If an attribute is not available in this library, it is appropriate to returnnullfrom the protected attribute methods, but implement as many as possible for best compliance with the OpenTelemetry specification.