Expand description
Passive diagnostics for attributing high-frequency async polling.
Diagnostics are disabled unless HOPR_RUNTIME_POLL_DIAGNOSTICS=1 is set.
When enabled, warnings are rate-limited by HOPR_RUNTIME_POLL_WARN_EVERY
and start after HOPR_RUNTIME_POLL_WARN_AFTER polls or child futures.
Structsยง
- Concurrent
Diagnostic Future - Child-future wrapper for concurrent stream diagnostics.
- Concurrent
Diagnostic ๐State - Concurrent
Diagnostics - Shared diagnostics for
for_each_concurrent/try_for_each_concurrentchild futures. - Diagnostics
Config ๐ - Poll
Diagnostic Future - Future wrapper that counts polls and emits rate-limited warnings.
- Poll
Diagnostic ๐State
Constantsยง
- DEFAULT_
WARN_ ๐AFTER - DEFAULT_
WARN_ ๐EVERY - ENV_
ENABLED ๐ - ENV_
WARN_ ๐AFTER - ENV_
WARN_ ๐EVERY
Staticsยง
- CONFIG ๐
Functionsยง
- config ๐
- enabled
- Returns whether runtime poll diagnostics are enabled for this process.
- instrument
- Instruments a future using callsite metadata.
- location ๐
- parse_
bool ๐ - parse_
duration ๐ - should_
warn ๐ - warn_
high_ ๐child_ rate - warn_
high_ ๐poll_ rate