Package io.sentry.jdbc
Class SentryJdbcEventListener
java.lang.Object
com.p6spy.engine.event.JdbcEventListener
com.p6spy.engine.event.SimpleJdbcEventListener
io.sentry.jdbc.SentryJdbcEventListener
public class SentryJdbcEventListener
extends com.p6spy.engine.event.SimpleJdbcEventListener
P6Spy JDBC event listener that creates
Span
s around database queries.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterAnyExecute
(@NotNull com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, @Nullable SQLException e) void
onBeforeAnyExecute
(@NotNull com.p6spy.engine.common.StatementInformation statementInformation) Methods inherited from class com.p6spy.engine.event.SimpleJdbcEventListener
onAfterAddBatch, onAfterAddBatch, onAfterAnyAddBatch, onAfterExecute, onAfterExecute, onAfterExecuteBatch, onAfterExecuteQuery, onAfterExecuteQuery, onAfterExecuteUpdate, onAfterExecuteUpdate, onBeforeAddBatch, onBeforeAddBatch, onBeforeAnyAddBatch, onBeforeExecute, onBeforeExecute, onBeforeExecuteBatch, onBeforeExecuteQuery, onBeforeExecuteQuery, onBeforeExecuteUpdate, onBeforeExecuteUpdate
Methods inherited from class com.p6spy.engine.event.JdbcEventListener
onAfterCallableStatementSet, onAfterCommit, onAfterConnectionClose, onAfterGetConnection, onAfterGetResultSet, onAfterPreparedStatementSet, onAfterResultSetClose, onAfterResultSetGet, onAfterResultSetGet, onAfterResultSetNext, onAfterRollback, onAfterSetAutoCommit, onAfterStatementClose, onBeforeCommit, onBeforeGetConnection, onBeforeResultSetNext, onBeforeRollback, onBeforeSetAutoCommit, onConnectionWrapped
-
Constructor Details
-
SentryJdbcEventListener
-
SentryJdbcEventListener
public SentryJdbcEventListener()
-
-
Method Details
-
onBeforeAnyExecute
public void onBeforeAnyExecute(@NotNull @NotNull com.p6spy.engine.common.StatementInformation statementInformation) - Overrides:
onBeforeAnyExecute
in classcom.p6spy.engine.event.SimpleJdbcEventListener
-
onAfterAnyExecute
public void onAfterAnyExecute(@NotNull @NotNull com.p6spy.engine.common.StatementInformation statementInformation, long timeElapsedNanos, @Nullable @Nullable SQLException e) - Overrides:
onAfterAnyExecute
in classcom.p6spy.engine.event.SimpleJdbcEventListener
-