Skip to content

Add rate‑limited log warning when BatchSpanProcessor drops spans#8167

Open
VamshikrishnaMonagari wants to merge 1 commit intoopen-telemetry:mainfrom
VamshikrishnaMonagari:alert-through-logs-when-BatchSpanProcessor-drops-span
Open

Add rate‑limited log warning when BatchSpanProcessor drops spans#8167
VamshikrishnaMonagari wants to merge 1 commit intoopen-telemetry:mainfrom
VamshikrishnaMonagari:alert-through-logs-when-BatchSpanProcessor-drops-span

Conversation

@VamshikrishnaMonagari
Copy link

Summary

When BatchSpanProcessor's internal queue fills and spans are dropped, the SDK previously only emitted internal metrics (which can be missed if no metrics pipeline is configured). This PR adds a rate-limited WARNING log so users can detect span drops via logs.

Key changes

  • Add ThrottlingLogger to BatchSpanProcessor
  • Log a warning when a span is dropped due to the queue being full
  • Add a unit test ensuring the warning is emitted under queue-full conditions

Fixes

Fixes #7103

@VamshikrishnaMonagari VamshikrishnaMonagari requested a review from a team as a code owner March 9, 2026 03:09
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.

Alert through logs when BatchSpanProcessor drops span

1 participant