Class OpenTelemetryAgroalDataSource

java.lang.Object
io.opentelemetry.instrumentation.jdbc.datasource.OpenTelemetryDataSource
io.quarkus.agroal.runtime.OpenTelemetryAgroalDataSource
All Implemented Interfaces:
io.agroal.api.AgroalDataSource, Serializable, AutoCloseable, Wrapper, CommonDataSource, DataSource

public class OpenTelemetryAgroalDataSource extends io.opentelemetry.instrumentation.jdbc.datasource.OpenTelemetryDataSource implements io.agroal.api.AgroalDataSource
The AgroalDataSource wrapper that activates OpenTelemetry JDBC instrumentation.
See Also:
  • Constructor Details

    • OpenTelemetryAgroalDataSource

      public OpenTelemetryAgroalDataSource(io.agroal.api.AgroalDataSource delegate)
  • Method Details

    • isHealthy

      public boolean isHealthy(boolean newConnection) throws SQLException
      Specified by:
      isHealthy in interface io.agroal.api.AgroalDataSource
      Throws:
      SQLException
    • getConfiguration

      public io.agroal.api.configuration.AgroalDataSourceConfiguration getConfiguration()
      Specified by:
      getConfiguration in interface io.agroal.api.AgroalDataSource
    • getMetrics

      public io.agroal.api.AgroalDataSourceMetrics getMetrics()
      Specified by:
      getMetrics in interface io.agroal.api.AgroalDataSource
    • flush

      public void flush(io.agroal.api.AgroalDataSource.FlushMode mode)
      Specified by:
      flush in interface io.agroal.api.AgroalDataSource
    • setPoolInterceptors

      public void setPoolInterceptors(Collection<? extends io.agroal.api.AgroalPoolInterceptor> interceptors)
      Specified by:
      setPoolInterceptors in interface io.agroal.api.AgroalDataSource
    • getPoolInterceptors

      public List<io.agroal.api.AgroalPoolInterceptor> getPoolInterceptors()
      Specified by:
      getPoolInterceptors in interface io.agroal.api.AgroalDataSource
    • createShardingKeyBuilder

      public ShardingKeyBuilder createShardingKeyBuilder() throws SQLException
      Specified by:
      createShardingKeyBuilder in interface CommonDataSource
      Throws:
      SQLException
    • close

      public void close()
      Specified by:
      close in interface io.agroal.api.AgroalDataSource
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class io.opentelemetry.instrumentation.jdbc.datasource.OpenTelemetryDataSource