Class R2dbcTelemetryBuilder
java.lang.Object
io.opentelemetry.instrumentation.r2dbc.v1_0.R2dbcTelemetryBuilder
A builder of
R2dbcTelemetry.-
Method Summary
Modifier and TypeMethodDescriptionaddAttributeExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<DbExecution, Void> attributesExtractor) build()Returns a newR2dbcTelemetrywith the settings of thisR2dbcTelemetryBuilder.setStatementSanitizationEnabled(boolean enabled) Sets whether thedb.statementattribute on the spans emitted by the constructedR2dbcTelemetryshould be sanitized.
-
Method Details
-
addAttributeExtractor
@CanIgnoreReturnValue public R2dbcTelemetryBuilder addAttributeExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<DbExecution, Void> attributesExtractor) -
setStatementSanitizationEnabled
Sets whether thedb.statementattribute on the spans emitted by the constructedR2dbcTelemetryshould be sanitized. If set totrue, all parameters that can potentially contain sensitive information will be masked. Enabled by default. -
build
Returns a newR2dbcTelemetrywith the settings of thisR2dbcTelemetryBuilder.
-