Skip to main content

Module rate_limit

Module rate_limit 

Source
Expand description

Single-shot ERROR on the first HTTP 429 from the telemetry proxy, which caps each node’s hourly byte budget. Only the metrics push observes 429 (logs retry via opentelemetry-otlp’s experimental-http-retry); compare_exchange on the shared latch keeps it to one ERROR per process.

Functions§

log_rate_limit_once 🔒
Log a single ERROR on the first 429, deduped via flag. env_filter is the active ESPRESSO_NODE_TELEMETRY_LOG; retry_after_secs is the parsed Retry-After header, if numeric.