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 Spans around database queries.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SentryJdbcEventListener

      public SentryJdbcEventListener(@NotNull @NotNull IHub hub)
    • SentryJdbcEventListener

      public SentryJdbcEventListener()
  • Method Details

    • onBeforeAnyExecute

      public void onBeforeAnyExecute(@NotNull @NotNull com.p6spy.engine.common.StatementInformation statementInformation)
      Overrides:
      onBeforeAnyExecute in class com.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 class com.p6spy.engine.event.SimpleJdbcEventListener