class
Cryload::Stats::Batch
- Cryload::Stats::Batch
- Reference
- Object
Overview
Worker-local stats batch flushed periodically to the global collector.
Defined in:
cryload/stats.crConstructors
Instance Method Summary
- #empty?
- #error_counts : Hash(String, Int64)
- #latency_buckets : Hash(Int32, Int64)
- #m2_latency_ms : Float64
- #max_request_time_ms : Float64
- #mean_latency_ms : Float64
- #min_request_time_ms : Float64
- #not_ok_requests : Int64
- #ok_requests : Int64
-
#record_error(category : String)
Transport errors are excluded from latency metrics: connect failures (~0 ms) and timeouts would otherwise skew the percentiles.
- #record_response(time_taken_ms : Float64, status_code : Int32, response_bytes : Int64 = 0_i64)
- #response_count : Int64
- #status_code_counts : Hash(Int32, Int64)
- #total_request_count : Int64
- #total_request_time_ms : Float64
- #total_response_bytes : Int64
- #transport_error_count : Int64
Constructor Detail
Instance Method Detail
def record_error(category : String)
#
Transport errors are excluded from latency metrics: connect failures (~0 ms) and timeouts would otherwise skew the percentiles.