You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make it impossible to track outcomes for items that remain in the envelope #1888
Before #1877, we reported rate limiting outcomes for replay items that remained in the envelope. This was possible because track_outcome uses the output of EnvelopeLimiter::enforce, but that function did not actually remove replays from the envelope:
Not sure what's the exact solution here, but generally speaking, any function that creates an outcome should consume the item that has been dropped.
### Tasks
- [x] Refactor EnvelopeContext: https://github.com/getsentry/relay/pull/1936
- [ ] https://github.com/getsentry/relay/pull/1944
- [x] Wontfix: https://github.com/getsentry/relay/pull/1940
- [x] Make test work without running System
- [x] Wontfix: Make inner envelope private -> Won't work, because we should not update the envelope summary after the event has been extracted.
Outcomes can now be produced right where the envelope items are dropped, but the initial goal of simplifying outcome reporting in rate limits has not been achieved.
Let's take a more top-level look at how to restructure Relay's data flow and the envelope data type (hierarchical containers instead of flat list of items?) instead.
Activity
ref(server): Move Envelope into EnvelopeContext (#1936)
jjbayer commentedon Mar 17, 2023
Outcomes can now be produced right where the envelope items are dropped, but the initial goal of simplifying outcome reporting in rate limits has not been achieved.
Let's take a more top-level look at how to restructure Relay's data flow and the envelope data type (hierarchical containers instead of flat list of items?) instead.
ref(server): Track outcomes in retain_items (#1944)