Skip to main content

Module usage

Module usage 

Source
Expand description

Go internal/redisqueue: the in-memory usage queue that management’s GET /observability/usage/queue drains. The request path enqueues one JSON record per upstream request (Go queuedUsageDetail); records older than the retention window are pruned on every access.

RESP clients on the main listener (crate::resp) subscribe to the usage and errors channels; while any usage subscriber is connected, records go to them instead of the queue, as in Go.

Structs§

Subscription
One channel subscription; dropping it unsubscribes (Go’s unsubscribe). messages ends when the queue drops the subscriber (full buffer, or the queue was disabled).
UsageQueue