class
Obsctl::Server::BestEffortLogBroadcast
- Obsctl::Server::BestEffortLogBroadcast
- Reference
- Object
Overview
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.
Defined in:
obsctl/server/best_effort_log_broadcast.crConstant Summary
-
DEFAULT_CAPACITY =
4
Constructors
Instance Method Summary
-
#broadcast(entry : JSON::Any) : Bool
Offers a diagnostic log-topic entry for asynchronous delivery.
- #capacity : Int32
-
#dropped_count : UInt64
Number of diagnostic entries dropped because the helper was at capacity.
-
#outstanding : Int32
Number of diagnostic deliveries currently accepted but not finished.
Constructor Detail
Instance Method Detail
def 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.
def dropped_count : UInt64
#
Number of diagnostic entries dropped because the helper was at capacity.