Class TraceProxyListener
java.lang.Object
io.opentelemetry.instrumentation.r2dbc.v1_0.internal.TraceProxyListener
- All Implemented Interfaces:
io.r2dbc.proxy.listener.ProxyExecutionListener,io.r2dbc.proxy.listener.ProxyMethodExecutionListener
public final class TraceProxyListener
extends Object
implements io.r2dbc.proxy.listener.ProxyMethodExecutionListener
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
ConstructorsConstructorDescriptionTraceProxyListener(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<DbExecution, Void> instrumenter, io.r2dbc.spi.ConnectionFactoryOptions factoryOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterQuery(io.r2dbc.proxy.core.QueryExecutionInfo queryInfo) voidbeforeQuery(io.r2dbc.proxy.core.QueryExecutionInfo queryInfo) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.r2dbc.proxy.listener.ProxyExecutionListener
afterMethod, beforeMethod, eachQueryResultMethods inherited from interface io.r2dbc.proxy.listener.ProxyMethodExecutionListener
afterAddOnBatch, afterAddOnStatement, afterBeginTransactionOnConnection, afterBindNullOnStatement, afterBindOnStatement, afterCloseOnConnection, afterCommitTransactionOnConnection, afterCreateBatchOnConnection, afterCreateOnConnectionFactory, afterCreateSavepointOnConnection, afterCreateStatementOnConnection, afterExecuteOnBatch, afterExecuteOnBatch, afterExecuteOnStatement, afterExecuteOnStatement, afterFetchSizeOnStatement, afterFilterOnResult, afterFlatMapOnResult, afterGetMetadataOnConnection, afterGetMetadataOnConnectionFactory, afterGetMetadataOnRow, afterGetOnRow, afterGetRowsUpdatedOnResult, afterGetTransactionIsolationLevelOnConnection, afterIsAutoCommitOnConnection, afterMapOnResult, afterReleaseSavepointOnConnection, afterReturnGeneratedValuesOnStatement, afterRollbackTransactionOnConnection, afterRollbackTransactionToSavepointOnConnection, afterSetAutoCommitOnConnection, afterSetLockWaitTimeoutOnConnection, afterSetStatementTimeoutOnConnection, afterSetTransactionIsolationLevelOnConnection, afterValidateOnConnection, beforeAddOnBatch, beforeAddOnStatement, beforeBeginTransactionOnConnection, beforeBindNullOnStatement, beforeBindOnStatement, beforeCloseOnConnection, beforeCommitTransactionOnConnection, beforeCreateBatchOnConnection, beforeCreateOnConnectionFactory, beforeCreateSavepointOnConnection, beforeCreateStatementOnConnection, beforeExecuteOnBatch, beforeExecuteOnBatch, beforeExecuteOnStatement, beforeExecuteOnStatement, beforeFetchSizeOnStatement, beforeFilterOnResult, beforeFlatMapOnResult, beforeGetMetadataOnConnection, beforeGetMetadataOnConnectionFactory, beforeGetMetadataOnRow, beforeGetOnRow, beforeGetRowsUpdatedOnResult, beforeGetTransactionIsolationLevelOnConnection, beforeIsAutoCommitOnConnection, beforeMapOnResult, beforeReleaseSavepointOnConnection, beforeReturnGeneratedValuesOnStatement, beforeRollbackTransactionOnConnection, beforeRollbackTransactionToSavepointOnConnection, beforeSetAutoCommitOnConnection, beforeSetLockWaitTimeoutOnConnection, beforeSetStatementTimeoutOnConnection, beforeSetTransactionIsolationLevelOnConnection, beforeValidateOnConnection
-
Constructor Details
-
TraceProxyListener
public TraceProxyListener(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<DbExecution, Void> instrumenter, io.r2dbc.spi.ConnectionFactoryOptions factoryOptions)
-
-
Method Details
-
beforeQuery
public void beforeQuery(io.r2dbc.proxy.core.QueryExecutionInfo queryInfo) - Specified by:
beforeQueryin interfaceio.r2dbc.proxy.listener.ProxyExecutionListener
-
afterQuery
public void afterQuery(io.r2dbc.proxy.core.QueryExecutionInfo queryInfo) - Specified by:
afterQueryin interfaceio.r2dbc.proxy.listener.ProxyExecutionListener
-