struct CQL::Telemetry::QueryEvent

Overview

What happened when one statement ran.

Defined in:

telemetry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(sql : String, param_count : Int32, params : Nil | Array(Bool | Float32 | Float64 | Int32 | Int64 | Slice(UInt8) | String | Time | Nil), duration : Time::Span, error : Exception | Nil, adapter : CQL::Adapter, operation : Symbol, rows_affected : Int64 | Nil, context : Nil | String, pool_wait : Time::Span = Time::Span.zero) #

[View source]

Instance Method Detail

def adapter : Adapter #

[View source]
def context : String | Nil #

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

[View source]
def error : Exception | Nil #

[View source]
def operation : Symbol #

:select, :insert, :update, :delete, :ddl or :explain


[View source]
def param_count : Int32 #

[View source]
def params : Array(DB::Any) | Nil #

The bound values, only when Telemetry.capture_params is on.


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

Time spent waiting for a pooled connection; about zero on a pinned or transaction connection. Included in #duration; measured by CQL::Execution.run (zero in events built by Telemetry.observe).


[View source]
def rows_affected : Int64 | Nil #

[View source]
def sql : String #

[View source]
def success? : Bool #

[View source]