Skip to content

feat(client-reports): Client report protocol#1132

Closed
szokeasaurusrex wants to merge 2 commits into
szokeasaurusrex/move-batcher-under-clientfrom
szokeasaurusrex/client-report-protocol
Closed

feat(client-reports): Client report protocol#1132
szokeasaurusrex wants to merge 2 commits into
szokeasaurusrex/move-batcher-under-clientfrom
szokeasaurusrex/client-report-protocol

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented May 22, 2026

Copy link
Copy Markdown
Member

Added WIP client report protocol.

Let's wait with reviewing, I am going to build the rest of the client reports stuff on top of this, and will likely change things around depending here depending on what we end up needing here.

Resolves #1001
Resolves RUST-153

@linear-code

linear-code Bot commented May 22, 2026

Copy link
Copy Markdown

RUST-153

@github-actions

github-actions Bot commented May 22, 2026

Copy link
Copy Markdown
Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- Client report protocol ([#1132](https://github.com/getsentry/sentry-rust/pull/1132))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 66c55a9

Base automatically changed from szokeasaurusrex/pre-commit-hook to master May 26, 2026 08:35
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/client-report-protocol branch 5 times, most recently from 208a2b1 to ad5340d Compare June 8, 2026 11:34
@szokeasaurusrex szokeasaurusrex changed the base branch from master to szokeasaurusrex/move-batcher-under-client June 8, 2026 11:34
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/move-batcher-under-client branch from 32b9805 to ff22f25 Compare June 8, 2026 12:02
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/client-report-protocol branch from ad5340d to c5b2a2a Compare June 8, 2026 12:02
This will allow us to add additional construction options, either to all transports or to individual transports, in the future without breaking the public API. This will be useful in #1004, as we will need to provide transports with a handle to record data losses.

For users who use a custom transport/transport factory, this change may produce a minor behavior breakage, as the `&ClientOptions` received by the `create_transport` method (or the closure, in the case of transport factories which are just closures) will no longer contain all of the options set when init-ing the SDK, only those options which are also present in `TransportOptions`. As the API remains fully compatible, however, we are not considering this to be a public API breakage, and will release these changes in a minor/patch release.

References [#1004](#1004)
References [RUST-156](https://linear.app/getsentry/issue/RUST-156/record-transport-drops-and-attach-client-report-envelopes)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/client-report-protocol branch from c5b2a2a to 66c55a9 Compare June 9, 2026 12:28
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.

Add client_report protocol + envelope item support in sentry-types

1 participant