Class DbClientAttributesExtractorBuilder<REQUEST,RESPONSE>
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.db.DbClientAttributesExtractorBuilder<REQUEST,RESPONSE>
A builder of
DbClientAttributesExtractor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newDbClientAttributesExtractorwith the settings of thisDbClientAttributesExtractorBuilder.setCaptureQueryParameters(boolean captureQueryParameters) Sets whether the query parameters should be captured as span attributes nameddb.query.parameter.<key>.
-
Method Details
-
setCaptureQueryParameters
@CanIgnoreReturnValue public DbClientAttributesExtractorBuilder<REQUEST,RESPONSE> setCaptureQueryParameters(boolean captureQueryParameters) Sets whether the query parameters should be captured as span attributes nameddb.query.parameter.<key>. Disabled by default.WARNING: captured query parameters may contain sensitive information such as passwords, personally identifiable information or protected health info.
-
build
public io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE> build()Returns a newDbClientAttributesExtractorwith the settings of thisDbClientAttributesExtractorBuilder.
-