Class SqlClientAttributesExtractorBuilder<REQUEST,RESPONSE>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.instrumenter.db.SqlClientAttributesExtractorBuilder<REQUEST,RESPONSE>
-
public final class SqlClientAttributesExtractorBuilder<REQUEST,RESPONSE> extends Object
A builder ofSqlClientAttributesExtractor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlClientAttributesExtractor<REQUEST,RESPONSE>build()Returns a newSqlClientAttributesExtractorwith the settings of thisSqlClientAttributesExtractorBuilder.SqlClientAttributesExtractorBuilder<REQUEST,RESPONSE>setTableAttribute(io.opentelemetry.api.common.AttributeKey<String> dbTableAttribute)Configures the extractor to set the table value extracted by theSqlClientAttributesExtractorunder thedbTableAttributekey.
-
-
-
Method Detail
-
setTableAttribute
public SqlClientAttributesExtractorBuilder<REQUEST,RESPONSE> setTableAttribute(io.opentelemetry.api.common.AttributeKey<String> dbTableAttribute)
Configures the extractor to set the table value extracted by theSqlClientAttributesExtractorunder thedbTableAttributekey. By default, thedb.sql.tableattribute is used.- Parameters:
dbTableAttribute- TheAttributeKeyunder which the table extracted by theSqlClientAttributesExtractorwill be stored.
-
build
public SqlClientAttributesExtractor<REQUEST,RESPONSE> build()
Returns a newSqlClientAttributesExtractorwith the settings of thisSqlClientAttributesExtractorBuilder.
-
-