Skip to main content

Module introspection

Module introspection 

Source
Expand description

Per-Actor Introspection API — FR-015

Runtime actor inspection for debugging and monitoring:

  • List all actors with state, queue depth, message rate
  • Inspect per-actor metrics (read-only)
  • Peek at queued messages
  • Trace recent message processing with timing

§Streaming Introspection (v1.1)

Live introspection streaming for sub-millisecond metric freshness:

Structs§

ActorSnapshot
Snapshot of a single actor’s state for introspection.
IntrospectionService
Introspection service that aggregates data from all actors.
IntrospectionStream
Streaming live-metric dispatcher with per-actor subscriptions.
LatencyHistogram
A ring-buffer latency histogram for p50/p99 percentile computation.
LiveMetrics
Live per-actor metrics delivered to subscribers.
LiveMetricsEvent
K2H response: periodic metric emission from a GPU actor.
MetricAggregator
Aggregates per-actor metric counters and produces smoothed snapshots.
PerformanceSnapshot
Snapshot of an actor’s performance metrics.
QueueSnapshot
Snapshot of an actor’s queue state.
SubscribeMetricsRequest
H2K command: subscribe to metrics from a GPU actor.
SubscriberHandle
A handle to a single live-metrics subscription.
TraceBuffer
Per-actor trace buffer (ring buffer of recent processing traces).
TraceEntry
A recent message processing trace entry.

Enums§

TraceOutcome
Outcome of a traced message.

Constants§

DEFAULT_EWMA_ALPHA
Default EWMA smoothing factor for rate calculations.
LATENCY_HISTOGRAM_CAPACITY
Capacity of the LatencyHistogram ring buffer.