Class JdbiOpenTelemetryPlugin

java.lang.Object
org.jdbi.v3.core.spi.JdbiPlugin.Singleton
org.jdbi.v3.opentelemetry.JdbiOpenTelemetryPlugin
All Implemented Interfaces:
JdbiPlugin

public class JdbiOpenTelemetryPlugin extends JdbiPlugin.Singleton
  • Field Details

    • SQL

      public static final io.opentelemetry.api.common.AttributeKey<String> SQL
    • BINDING

      public static final io.opentelemetry.api.common.AttributeKey<String> BINDING
    • NUM_ROWS

      public static final io.opentelemetry.api.common.AttributeKey<Long> NUM_ROWS
  • Constructor Details

    • JdbiOpenTelemetryPlugin

      public JdbiOpenTelemetryPlugin()
    • JdbiOpenTelemetryPlugin

      public JdbiOpenTelemetryPlugin(io.opentelemetry.api.OpenTelemetry telemetry)
  • Method Details

    • customizeJdbi

      public void customizeJdbi(Jdbi jdbi) throws SQLException
      Description copied from interface: JdbiPlugin
      Configure customizations global to any object managed by this Jdbi. This method is invoked immediately when the plugin is installed.
      Parameters:
      jdbi - the jdbi to customize
      Throws:
      SQLException - something went wrong with the database