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
Relay doesn't add outcomes/meta info if attachment is too large #4534
When an envelope with an event + attachment is sent, but the attachment is dropped due to being too large.
How about we annotate the event ("had an attachment of N MB (if we know the size, I believe we cut the stream so..) but got dropped)
Having visibility through client reports is helpful, and we already have many, but can we tell which part of the envelope was dropped? If I send 1 event with 2 attachments, how do I know, in the SDK, that 1 or 2 attachments were dropped (and the event wasn't?)
The dropped attachment wouldn't be linked to the particular event but at least one could see that it happened in the outcomes.
Having a copy of the large item would be beneficial for debugging. I understand we don't do this today, but if we had the functionality where we could store 1 or N files up to ... (200 MB? or X MB?) one could investigate what's making them so large
Having visibility through client reports is helpful, and we already have many, but can we tell which part of the envelope was dropped? If I send 1 event with 2 attachments, how do I know, in the SDK, that 1 or 2 attachments were dropped (and the event wasn't?)
Relay does not support partial dropping of attachments, we drop the entire envelope if it's too large and report the outcome Too Large. We are right now looking into adding more context to the outcome so that users can at least see what was too large (#4208).
Having a copy of the large item would be beneficial for debugging. I understand we don't do this today, but if we had the functionality where we could store 1 or N files up to ... (200 MB? or X MB?) one could investigate what's making them so large
Not about size ^ in this case could be due to quota enforcement. But the same idea of having some indication on the event that additional data that was on the same envelope was dropped, would be very beneficial
Relay does not support partial dropping of attachments, we drop the entire envelope if it's too large and report the outcome Too Large. We are right now looking into adding more context to the outcome so that users can at least see what was too large (#4208).
Additional context will be much appreciated.
Regarding the size enforcement. If the envelope is not too large (compressed). Then we read the event. And when reading the attachment it turns out too be too large, do we drop out the event too?
Or there's no code path where we accept the envelope but then drop only some items from it but not others?
Regarding the size enforcement. If the envelope is not too large (compressed). Then we read the event. And when reading the attachment it turns out too be too large, do we drop out the event too?
Once we unpack the envelope we start to go through all individual parts and check their limits as well as the cumulative limit for the entire envelope. If either of those violate the limit, we return the Outcome that it was too large and reject the entire envelope.
Activity
bruno-garcia commentedon Mar 5, 2025
Relates to:
As in, we could show at the issue level how many attachments were dropped on that issue
Litarnus commentedon Mar 6, 2025
In this case the attachment was dropped in the .NET SDK so we can't do much in relay.
One solution could be to make the .NET SDK send a ClientReport that says that an attachment was dropped: https://develop.sentry.dev/sdk/telemetry/client-reports/
The dropped attachment wouldn't be linked to the particular event but at least one could see that it happened in the outcomes.
bruno-garcia commentedon Mar 11, 2025
Having visibility through client reports is helpful, and we already have many, but can we tell which part of the envelope was dropped? If I send 1 event with 2 attachments, how do I know, in the SDK, that 1 or 2 attachments were dropped (and the event wasn't?)
Having a copy of the large item would be beneficial for debugging. I understand we don't do this today, but if we had the functionality where we could store 1 or N files up to ... (200 MB? or X MB?) one could investigate what's making them so large
Litarnus commentedon Mar 12, 2025
Relay does not support partial dropping of attachments, we drop the entire envelope if it's too large and report the outcome
Too Large. We are right now looking into adding more context to the outcome so that users can at least see what was too large (#4208).I agree, that would be a cool feature!
bruno-garcia commentedon Mar 13, 2025
Relates to:
Not about size ^ in this case could be due to quota enforcement. But the same idea of having some indication on the event that additional data that was on the same envelope was dropped, would be very beneficial
bruno-garcia commentedon Mar 13, 2025
Additional context will be much appreciated.
Regarding the size enforcement. If the envelope is not too large (compressed). Then we read the event. And when reading the attachment it turns out too be too large, do we drop out the event too?
Or there's no code path where we accept the envelope but then drop only some items from it but not others?
Litarnus commentedon Mar 17, 2025
Once we unpack the envelope we start to go through all individual parts and check their limits as well as the cumulative limit for the entire envelope. If either of those violate the limit, we return the Outcome that it was too large and reject the entire envelope.
See:
relay/relay-server/src/endpoints/common.rs
Line 377 in 3e71b9b
relay/relay-server/src/utils/unreal.rs
Line 93 in 3e71b9b
Litarnus commentedon Mar 24, 2025
We deployed this PR (https://github.com/getsentry/team-ingest/issues/635), users will now see what caused the the envelope to be too large.
I will close this issue now since it's not related to relay