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.AgroalDataSource
The
AgroalDataSource wrapper that activates OpenTelemetry JDBC instrumentation.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.agroal.api.AgroalDataSource
io.agroal.api.AgroalDataSource.FlushMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush(io.agroal.api.AgroalDataSource.FlushMode mode) io.agroal.api.configuration.AgroalDataSourceConfigurationio.agroal.api.AgroalDataSourceMetricsList<io.agroal.api.AgroalPoolInterceptor> 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, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
getParentLoggerMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
OpenTelemetryAgroalDataSource
public OpenTelemetryAgroalDataSource(io.agroal.api.AgroalDataSource delegate)
-
-
Method Details
-
isHealthy
- 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
- Specified by:
getPoolInterceptorsin interfaceio.agroal.api.AgroalDataSource
-
createShardingKeyBuilder
- 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
-