Package io.quarkus.agroal.runtime
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.AgroalDataSourceTheAgroalDataSourcewrapper that activates OpenTelemetry JDBC instrumentation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenTelemetryAgroalDataSource(io.agroal.api.AgroalDataSource delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ShardingKeyBuildercreateShardingKeyBuilder()voidflush(io.agroal.api.AgroalDataSource.FlushMode mode)io.agroal.api.configuration.AgroalDataSourceConfigurationgetConfiguration()io.agroal.api.AgroalDataSourceMetricsgetMetrics()List<io.agroal.api.AgroalPoolInterceptor>getPoolInterceptors()booleanisHealthy(boolean newConnection)voidsetPoolInterceptors(Collection<? extends io.agroal.api.AgroalPoolInterceptor> interceptors)-
Methods inherited from class io.opentelemetry.instrumentation.jdbc.datasource.OpenTelemetryDataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.sql.CommonDataSource
getParentLogger
-
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
Method Detail
-
isHealthy
public boolean isHealthy(boolean newConnection) throws SQLException- Specified by:
isHealthyin interfaceio.agroal.api.AgroalDataSource- Throws:
SQLException
-
getConfiguration
public io.agroal.api.configuration.AgroalDataSourceConfiguration getConfiguration()
- Specified by:
getConfigurationin interfaceio.agroal.api.AgroalDataSource
-
getMetrics
public io.agroal.api.AgroalDataSourceMetrics getMetrics()
- Specified by:
getMetricsin interfaceio.agroal.api.AgroalDataSource
-
flush
public void flush(io.agroal.api.AgroalDataSource.FlushMode mode)
- Specified by:
flushin interfaceio.agroal.api.AgroalDataSource
-
setPoolInterceptors
public void setPoolInterceptors(Collection<? extends io.agroal.api.AgroalPoolInterceptor> interceptors)
- Specified by:
setPoolInterceptorsin interfaceio.agroal.api.AgroalDataSource
-
getPoolInterceptors
public List<io.agroal.api.AgroalPoolInterceptor> getPoolInterceptors()
- Specified by:
getPoolInterceptorsin interfaceio.agroal.api.AgroalDataSource
-
createShardingKeyBuilder
public ShardingKeyBuilder createShardingKeyBuilder() throws SQLException
- Specified by:
createShardingKeyBuilderin interfaceCommonDataSource- Throws:
SQLException
-
close
public void close()
- Specified by:
closein interfaceio.agroal.api.AgroalDataSource- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classio.opentelemetry.instrumentation.jdbc.datasource.OpenTelemetryDataSource
-
-