Class DbClientAttributesExtractorBuilder<REQUEST,RESPONSE>

java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.db.DbClientAttributesExtractorBuilder<REQUEST,RESPONSE>

public final class DbClientAttributesExtractorBuilder<REQUEST,RESPONSE> extends Object
  • Method Details

    • setCaptureQueryParameters

      @CanIgnoreReturnValue public DbClientAttributesExtractorBuilder<REQUEST,RESPONSE> setCaptureQueryParameters(boolean captureQueryParameters)
      Sets whether the query parameters should be captured as span attributes named db.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 new DbClientAttributesExtractor with the settings of this DbClientAttributesExtractorBuilder.