Class LettuceTelemetryBuilder
java.lang.Object
io.opentelemetry.instrumentation.lettuce.v5_1.LettuceTelemetryBuilder
A builder of
LettuceTelemetry.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newLettuceTelemetrywith the settings of thisLettuceTelemetryBuilder.setStatementSanitizationEnabled(boolean statementSanitizationEnabled) Sets whether thedb.statementattribute on the spans emitted by the constructedLettuceTelemetryshould be sanitized.
-
Method Details
-
setStatementSanitizationEnabled
@CanIgnoreReturnValue public LettuceTelemetryBuilder setStatementSanitizationEnabled(boolean statementSanitizationEnabled) Sets whether thedb.statementattribute on the spans emitted by the constructedLettuceTelemetryshould be sanitized. If set totrue, all parameters that can potentially contain sensitive information will be masked. Enabled by default. -
build
Returns a newLettuceTelemetrywith the settings of thisLettuceTelemetryBuilder.
-