Skip to content

Commit b86aa37

Browse files
sanityclaude
andauthored
feat(telemetry): shadow event sub-budget so shadow streams can't starve operational telemetry (#4454)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0829917 commit b86aa37

6 files changed

Lines changed: 360 additions & 27 deletions

File tree

.claude/rules/transport.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,12 @@ populated by `RollingRttStatsHandle` in every `RemoteConnection`. A
138138
mirror; visible via `RUST_LOG=…=debug` in debug builds, compiled
139139
out entirely in release builds via the `release_max_level_info`
140140
feature in `crates/core/Cargo.toml`) and via
141-
`send_standalone_event_with_peer_id` so it reaches the OTLP
141+
`send_standalone_shadow_event_with_peer_id` so it reaches the OTLP
142142
collector regardless of log level, tagged with the local node id
143-
so the collector can disaggregate samples per reporting node.
143+
so the collector can disaggregate samples per reporting node. All
144+
five shadow emitters use the `_shadow_` variant so the telemetry
145+
rate limiter admits them under a low-priority sub-budget and they
146+
cannot starve operational telemetry (#4380).
144147

145148
`transport/reference_ping.rs` runs an analogous 1Hz loop
146149
(`reference_ping` background task) that probes a fixed external

0 commit comments

Comments
 (0)