feat(client-reports): Add transport loss recorder#1158
Open
szokeasaurusrex wants to merge 11 commits into
Open
feat(client-reports): Add transport loss recorder#1158szokeasaurusrex wants to merge 11 commits into
szokeasaurusrex wants to merge 11 commits into
Conversation
d773421 to
a3a0645
Compare
|
b06abcc to
11aeb31
Compare
70d4273 to
2c18ec2
Compare
08adad0 to
ce47300
Compare
2c18ec2 to
d6c1636
Compare
ce47300 to
cd4d502
Compare
397f1c3 to
dd2269e
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
dd2269e to
c349e74
Compare
2fd0c53 to
3f24715
Compare
c349e74 to
1c48443
Compare
3f24715 to
3438068
Compare
e8d437b to
04ec791
Compare
3438068 to
1e52f77
Compare
04ec791 to
e5d3993
Compare
1e52f77 to
7fecb95
Compare
e5d3993 to
bd8478f
Compare
870bb6a to
c7eecf6
Compare
5895558 to
a105ff7
Compare
19e68bf to
e82ade7
Compare
3e0bd89 to
9ce6994
Compare
e82ade7 to
1bcf0fd
Compare
9ce6994 to
551e44c
Compare
651a1f3 to
d45e8b8
Compare
551e44c to
74e502d
Compare
35165bd to
b94ee40
Compare
f8d53d4 to
0858d55
Compare
b94ee40 to
c90f232
Compare
0858d55 to
7428f26
Compare
c90f232 to
e96d2c8
Compare
7428f26 to
4b4e4ba
Compare
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)
e96d2c8 to
fbe6662
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add a public
ClientReportRecorderhandle for transports to record lost Sentry data without exposing the full client-report aggregator.Pass the recorder through
TransportOptionswhen the SDK client builds a transport. Recorded losses are aggregated into futureclient_reportenvelope 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