struct
CQL::Telemetry::QueryEvent
- CQL::Telemetry::QueryEvent
- Struct
- Value
- Object
Overview
What happened when one statement ran.
Defined in:
telemetry.crConstructors
Instance Method Summary
- #adapter : Adapter
- #context : String | Nil
- #duration : Time::Span
- #error : Exception | Nil
-
#operation : Symbol
:select, :insert, :update, :delete, :ddl or :explain
- #param_count : Int32
-
#params : Array(DB::Any) | Nil
The bound values, only when
Telemetry.capture_paramsis on. -
#pool_wait : Time::Span
Time spent waiting for a pooled connection; about zero on a pinned or transaction connection.
- #rows_affected : Int64 | Nil
- #sql : String
- #success? : Bool
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)
#
Instance Method Detail
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).