struct
CQL::Telemetry::TransactionEvent
- CQL::Telemetry::TransactionEvent
- Struct
- Value
- Object
Overview
A transaction opened by Schema#transaction changed state. Begin is
published before the connection is checked out, so Commit/Rollback
durations include pool wait time.
Defined in:
telemetry.crConstructors
Instance Method Summary
- #adapter : Adapter
-
#duration : Time::Span
Time since Begin; zero for Begin.
-
#error : Exception | Nil
What ended the transaction in a Rollback (including
DB::Rollback), or what made the commit fail. -
#id : Int64
Shared by the Begin and the Commit/Rollback event of one transaction.
-
#nested : Bool
Informational: a transaction was already open on this fiber.
- #state : TransactionState
Constructor Detail
def self.new(state : CQL::Telemetry::TransactionState, id : Int64, duration : Time::Span, nested : Bool, error : Exception | Nil, adapter : CQL::Adapter)
#
Instance Method Detail
def error : Exception | Nil
#
What ended the transaction in a Rollback (including DB::Rollback),
or what made the commit fail.