Class R2dbcTelemetryBuilder

java.lang.Object
io.opentelemetry.instrumentation.r2dbc.v1_0.R2dbcTelemetryBuilder

public final class R2dbcTelemetryBuilder extends Object
A builder of R2dbcTelemetry.
  • Method Details

    • addAttributeExtractor

      @CanIgnoreReturnValue public R2dbcTelemetryBuilder addAttributeExtractor(io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<DbExecution,Void> attributesExtractor)
    • setStatementSanitizationEnabled

      @CanIgnoreReturnValue public R2dbcTelemetryBuilder setStatementSanitizationEnabled(boolean enabled)
      Sets whether the db.statement attribute on the spans emitted by the constructed R2dbcTelemetry should be sanitized. If set to true, all parameters that can potentially contain sensitive information will be masked. Enabled by default.
    • build

      public R2dbcTelemetry build()
      Returns a new R2dbcTelemetry with the settings of this R2dbcTelemetryBuilder.