class

HT2::StreamLifecycleTracer

Inherits Reference < Object

Tracks detailed stream lifecycle events for debugging and observability

Constants

MAX_CLOSED_STREAMS = 1000

Maximum number of closed stream histories to retain

Constructors

new(enabled : Bool = false)
Source

Instance methods

active_streams

Get all active stream histories

Source
clear

Clear all history

Source
closed_streams

Get closed stream histories (most recent first)

Source
enabled=(value : Bool) : Nil

Enable or disable tracing

Source
enabled?
Source
generate_report

Generate a summary report

Source
get_stream_history(stream_id : UInt32) : StreamHistory | Nil

Get history for a specific stream

Source
get_stream_trace(stream_id : UInt32) : String

Get detailed trace for a specific stream

Source
record_event(event_type : EventType, stream_id : UInt32, details : String | Nil = nil, previous_state : StreamState | Nil = nil, new_state : StreamState | Nil = nil) : Nil

Record a stream event

Source

Nested types