Class SqlAttributesExtractor<REQUEST>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,Void>
-
- io.opentelemetry.instrumentation.api.instrumenter.db.DbAttributesExtractor<REQUEST>
-
- io.opentelemetry.instrumentation.api.instrumenter.db.SqlAttributesExtractor<REQUEST>
-
public abstract class SqlAttributesExtractor<REQUEST> extends DbAttributesExtractor<REQUEST>
Extractor of database attributes. This class is designed with SQL (or SQL-like) database clients in mind. Aside from adding the same attributes asDbAttributesExtractor, it has two more features:- It sanitizes the raw SQL query and removes all parameters;
- It enables adding the table name extracted by the sanitizer as a parameter.