Skip to content

WIP: feat: client reports#1549

Draft
jpnurmi wants to merge 1 commit intojpnurmi/feat/http-retryfrom
jpnurmi/feat/client-reports
Draft

WIP: feat: client reports#1549
jpnurmi wants to merge 1 commit intojpnurmi/feat/http-retryfrom
jpnurmi/feat/client-reports

Conversation

@jpnurmi
Copy link
Collaborator

@jpnurmi jpnurmi commented Mar 3, 2026

This PR implements client reports for tracking discarded events.

  • Add sentry_client_report module
  • Add send_client_reports option (enabled by default)
  • Instrument discard points: sample_rate, before_send, rate limiting, network errors, queue overflow
  • Piggyback client reports onto outgoing envelopes
  • Record network error discards per envelope item with correct data category, only when retry is not available

Close: #1216

#skip-changelog (wip)

Implement SDK telemetry for tracking discarded events per
https://develop.sentry.dev/sdk/telemetry/client-reports/

- Add sentry_client_report module
- Add send_client_reports option (enabled by default)
- Instrument discard points: sample_rate, before_send, rate limiting,
  network errors, queue overflow
- Piggyback client reports onto outgoing envelopes
- Record network error discards per envelope item with correct data
  category, only when retry is not available
- Add unit and integration tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant