oa_gateway::serve

Function stats_ticker

Source
fn stats_ticker(
    engine: Arc<Engine>,
    interval_secs: u64,
    shutdown: CancellationToken,
) -> Option<JoinHandle<()>>
Expand description

Installs the process-wide tracing subscriber.

Honors RUST_LOG when set; otherwise filters at info, which is the level the usage text documents. Logs Engine counters on interval_secs. 0 starts nothing.