java.lang.Object
io.opentelemetry.instrumentation.jdbc.datasource.internal.Experimental

public final class Experimental extends Object
This class is internal and experimental. Its APIs are unstable and can change at any time. Its APIs (or a version of them) may be promoted to the public stable API in the future, but no guarantees are made.
  • Method Details

    • setEnableSqlCommenter

      public static void setEnableSqlCommenter(JdbcTelemetryBuilder builder, boolean sqlCommenterEnabled)
      Sets whether to augment sql query with comment containing the tracing information. See sqlcommenter for more info.

      WARNING: augmenting queries with tracing context will make query texts unique, which may have adverse impact on database performance. Consult with database experts before enabling.

    • internalSetEnableSqlCommenter

      public static void internalSetEnableSqlCommenter(BiConsumer<JdbcTelemetryBuilder,Boolean> setEnableSqlCommenter)