Skip to content

fix(telemetry-client): log warning when BatchSpanProcessor drops spans#22511

Merged
PhilWindle merged 2 commits into
merge-train/spartanfrom
alexg/a-747-audit-75-telemetry-batchspanprocessor-drops-spans-silently
Apr 21, 2026
Merged

fix(telemetry-client): log warning when BatchSpanProcessor drops spans#22511
PhilWindle merged 2 commits into
merge-train/spartanfrom
alexg/a-747-audit-75-telemetry-batchspanprocessor-drops-spans-silently

Conversation

@alexghr

@alexghr alexghr commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes A-747: The OTel BatchSpanProcessor silently drops spans when its internal queue is full. Introduced MonitoredBatchSpanProcessor that extends it, tracks approximate queue depth, and emits rate-limited warnings (every 30s) when drops are detected. Also logs total drops on shutdown.

Test plan

  • Verify telemetry client starts correctly with the new processor
  • Under high span volume, confirm warning logs appear instead of silent drops
  • Existing telemetry tests should pass unchanged

🤖 Generated with Claude Code

alexghr and others added 2 commits April 15, 2026 13:49
…s due to full queue (A-747)

Introduces MonitoredBatchSpanProcessor that extends BatchSpanProcessor
and emits periodic warnings when spans are dropped due to a full queue.
Previously drops were completely silent, making telemetry data loss
invisible to operators.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexghr alexghr force-pushed the alexg/a-747-audit-75-telemetry-batchspanprocessor-drops-spans-silently branch from 6ec4b05 to 593170b Compare April 15, 2026 13:54
@AztecBot

Copy link
Copy Markdown
Collaborator

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/442c64ca6919ca46�442c64ca6919ca468;;�): yarn-project/scripts/run_test.sh bb-prover/src/avm_proving_tests/avm_check_circuit_amm.test.ts (9s) (code: 0)

@PhilWindle PhilWindle merged commit ac2b7b5 into merge-train/spartan Apr 21, 2026
12 checks passed
@PhilWindle PhilWindle deleted the alexg/a-747-audit-75-telemetry-batchspanprocessor-drops-spans-silently branch April 21, 2026 08:34
chrismarino pushed a commit to chrismarino/aztec-packages that referenced this pull request May 5, 2026
BEGIN_COMMIT_OVERRIDE
fix(kv-store): ensure LMDB cursor is closed on iteration abort (AztecProtocol#22509)
fix(telemetry-client): use appropriate histogram buckets for L1 gas
prices (AztecProtocol#22512)
fix(telemetry-client): log warning when BatchSpanProcessor drops spans
(AztecProtocol#22511)
fix(stdlib): wrap HA signer databaseUrl in SecretValue (AztecProtocol#22510)
fix(prover-client): don't mark in-progress epoch N jobs as stale when
epoch N+1 starts (AztecProtocol#22508)
chore: (A-730) graceful shutdown for services in node startup failure
path (AztecProtocol#22112)
fix(prover-client): reject stale job promises and count timeouts toward
retry limit (AztecProtocol#21842)
feat(archiver): validate historical L1 log availability at startup
(AztecProtocol#22644)
fix(archiver): do not query MessageSent events by blockhash (AztecProtocol#22641)
refactor(e2e): skip initial sequencer in p2p and epochs tests (AztecProtocol#22535)
fix: handle missing L1 finalized block on devnets (AztecProtocol#22663)
fix(world-state): treat historical block 0 queries as historical, not
latest (AztecProtocol#22679)
fix(sequencer): re-check parent checkpoint validity before pipelined L1
submission (AztecProtocol#22586)
fix(world-state): make block 0 a first-class historical block (AztecProtocol#22711)
chore: show all running versions (AztecProtocol#22376)
chore: fix prettier inside worktrees (AztecProtocol#22557)
feat: use optimized verifier for rollup (AztecProtocol#21840)
fix(kv-store): skip pool creation on ephemeral deleteDb to unstick
browser tests (AztecProtocol#22693)
chore: rm claude lockfile (AztecProtocol#22718)
fix(e2e): wait for first checkpoint in fee_asset_price_oracle_gossip
test (AztecProtocol#22719)
chore(prover-node): track estimated L1 fee when proof publishing is
disabled (AztecProtocol#22691)
fix(ci): rerun squashed PR check on base branch change (AztecProtocol#22713)
feat(archiver): decouple calldata from blob fetching in L1 synchronizer
(AztecProtocol#22716)
refactor(e2e): enable pipelining in e2e_epochs tests (AztecProtocol#22544)
feat(p2p): reject and evict txs with insufficient max fee per gas
(AztecProtocol#22118)
refactor(world-state): always index block 0 regardless of initial tree
size (AztecProtocol#22724)
fix(e2e): fix redistribution test (AztecProtocol#22729)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants