class

Obsctl::Server::BestEffortLogBroadcast

Inherits Reference < Object

Bounded best-effort fanout for secondary diagnostic log-topic delivery.

Runtime logging is intentionally outside this helper. Callers should write durable diagnostics before offering entries here.

Constants

DEFAULT_CAPACITY = 4

Constructors

new(broadcast : Proc(JSON::Any, Nil), capacity : Int32 = DEFAULT_CAPACITY)
Source

Instance methods

broadcast(entry : JSON::Any) : Bool

Offers a diagnostic log-topic entry for asynchronous delivery.

Returns false without spawning work when the outstanding delivery bound has already been reached.

Source
capacity
Source
dropped_count

Number of diagnostic entries dropped because the helper was at capacity.

Source
outstanding

Number of diagnostic deliveries currently accepted but not finished.

Source