Skip to content

feat(client-reports): Add transport loss recorder - #1158

Merged
szokeasaurusrex merged 11 commits into
szokeasaurusrex/client-report-aggregatorfrom
szokeasaurusrex/transport-report-recorder
Jun 24, 2026
Merged

szokeasaurusrex merged 11 commits into
szokeasaurusrex/client-report-aggregatorfrom
szokeasaurusrex/transport-report-recorder

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jun 10, 2026 •

Copy link
Copy Markdown
Member

Add a public ClientReportRecorder handle for transports to record lost Sentry data without exposing the full client-report aggregator.

Pass the recorder through TransportOptions when the SDK client builds a transport. Recorded losses are aggregated into future client_report envelope items, so transports can report drops without sending extra requests.

Keep backwards-compatible transport construction paths working by using a no-op recorder when no client-report aggregator is available. Built-in transports will start calling the recorder in follow-up PRs.

Resolves #1148
Resolves RUST-223

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from d773421 to a3a0645 Compare June 10, 2026 15:16
@szokeasaurusrex szokeasaurusrex changed the title WIP: ClientReportRecorder feat(client-reports): Add transport loss recorder Jun 10, 2026
@linear-code

linear-code Bot commented Jun 10, 2026

Copy link
Copy Markdown

RUST-223

@github-actions

github-actions Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 27cea06

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch 2 times, most recently from b06abcc to 11aeb31 Compare June 10, 2026 15:28
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review June 10, 2026 15:29
@szokeasaurusrex
szokeasaurusrex requested a review from lcian as a code owner June 10, 2026 15:29
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch 2 times, most recently from 70d4273 to 2c18ec2 Compare June 12, 2026 10:08
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from 2c18ec2 to d6c1636 Compare June 12, 2026 12:37
cursor[bot]

This comment was marked as resolved.

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from 397f1c3 to dd2269e Compare June 12, 2026 13:38

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit dd2269e. Configure here.

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from dd2269e to c349e74 Compare June 12, 2026 13:41
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from c349e74 to 1c48443 Compare June 12, 2026 15:28
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch 2 times, most recently from e8d437b to 04ec791 Compare June 16, 2026 11:56
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from 04ec791 to e5d3993 Compare June 16, 2026 12:49
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from e5d3993 to bd8478f Compare June 16, 2026 12:51
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch 2 times, most recently from 35165bd to b94ee40 Compare June 22, 2026 08:12
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from b94ee40 to c90f232 Compare June 22, 2026 11:20
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from c90f232 to e96d2c8 Compare June 22, 2026 15:54
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from e96d2c8 to fbe6662 Compare June 22, 2026 16:02
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch 2 times, most recently from cc7914d to 47b5cc6 Compare June 23, 2026 12:36
Add a public `ClientReportRecorder` handle for transports to record lost Sentry data without exposing the full client-report aggregator.

Pass the recorder through `TransportOptions` when the SDK client builds a transport. Recorded losses are aggregated into future `client_report` envelope items, so transports can report drops without sending extra requests.

Keep backwards-compatible transport construction paths working by using a no-op recorder when no client-report aggregator is available. Built-in transports will start calling the recorder in follow-up PRs.

Resolves [#1148](#1148)
Resolves [RUST-223](https://linear.app/getsentry/issue/RUST-223)
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-report-recorder branch from 47b5cc6 to 27cea06 Compare June 24, 2026 12:28
@szokeasaurusrex
szokeasaurusrex merged commit 57f630e into master Jun 24, 2026
42 of 49 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/transport-report-recorder branch June 24, 2026 12:43
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.

2 participants