Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions crates/buzz-relay/src/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,16 @@ mod tests {

#[test]
fn trace_context_lookup_does_not_enable_callsites() {
// #3929: this test intermittently failed under the parallel suite
// because `tracing`'s callsite *interest* cache is global per
// callsite, not per-subscriber. A neighbor test that registers a
// global default dispatcher can poison this callsite's cached
// interest before our thread-local `with_default` runs, so the probe
// consults a stale entry. Serialize against the other global-state
// tests via the shared ENV_LOCK (the same mutex they already take),
// so no global-dispatcher registration can overlap this test.
let _guard = ENV_LOCK.lock().unwrap();

let context_lookup = TraceContextLookup::default();
let subscriber = tracing_subscriber::registry().with(
context_lookup
Expand Down