class

HT2::ConnectionMetrics

Inherits Reference < Object

Tracks comprehensive metrics for HTTP/2 connections

Constructors

Instance methods

bytes_received
Source
bytes_sent
Source
current_streams
Source
errors_received
Source
errors_sent

Error counters

Source
flow_control_stalls

Flow control metrics

Source
frames_received
Source
frames_sent

Frame counters

Source
goaway_received?
Source
goaway_sent?
Source
idle_time

Get time since last activity

Source
last_activity_at

Performance metrics

Source
max_concurrent_streams
Source
recent_connection_errors

Get recent connection errors count

Source
recent_stream_errors

Get recent stream errors count

Source
record_bytes_received(count : Int32) : Nil
Source
record_bytes_sent(count : Int32) : Nil

Record bytes sent/received outside of frames (e.g., preface)

Source
record_connection_error

Track connection errors with sliding window

Source
record_flow_control_stall

Record flow control events

Source
record_frame_received(frame : Frame) : Nil

Record a frame being received

Source
record_frame_sent(frame : Frame) : Nil

Record a frame being sent

Source
record_stream_closed(stream_id : UInt32 | Nil = nil) : Nil
Source
record_stream_created(stream_id : UInt32 | Nil = nil) : Nil

Record stream lifecycle events

Source
record_stream_error

Track stream errors with sliding window

Source
snapshot

Get comprehensive metrics snapshot

Source
streams_closed
Source
streams_created

Connection-level counters

Source
uptime

Get connection uptime

Source
window_updates_received
Source
window_updates_sent
Source

Nested types