Skip to content

DiagnosticsOptions

Defined in: diagnostics/Diagnostics.ts:49

optional flushIntervalSec?: number

Defined in: diagnostics/Diagnostics.ts:63

Seconds between handing what has accumulated to the sink. Zero delivers on the next frame, which is rarely what a network sink wants.


optional maxDistinct?: number

Defined in: diagnostics/Diagnostics.ts:60

How many distinct problems to track at once. Reached, further NEW problems are dropped (counted in DiagnosticsAPI.dropped) while the ones already known keep counting.

Keeping the earliest rather than the newest is deliberate: when a game comes apart it comes apart in cascade, and the first distinct failure is the one that explains the next fifty. An LRU here would evict the cause and keep the consequences.