struct CQL::Telemetry::TransactionEvent

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(state : CQL::Telemetry::TransactionState, id : Int64, duration : Time::Span, nested : Bool, error : Exception | Nil, adapter : CQL::Adapter) #

[View source]

Instance Method Detail

def adapter : Adapter #

[View source]
def duration : Time::Span #

Time since Begin; zero for Begin.


[View source]
def error : Exception | Nil #

What ended the transaction in a Rollback (including DB::Rollback), or what made the commit fail.


[View source]
def id : Int64 #

Shared by the Begin and the Commit/Rollback event of one transaction.


[View source]
def nested : Bool #

Informational: a transaction was already open on this fiber.


[View source]
def state : TransactionState #

[View source]