-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(outcomes): Add file type to 'too large' outcome. #87078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(outcomes): Add file type to 'too large' outcome. #87078
Conversation
Please do not forget to update the doc with the exposed new reasons: https://docs.sentry.io/product/stats/#invalid 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding tests! it looks good to me 🙌
'Browser Extensions' | ||
); | ||
|
||
expect(getReasonGroupName(Outcome.CLIENT_DISCARD, 'queue_overflow')).toBe( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could reuse the enum ClientDiscardReason
here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure I understand this correctly, I changed this to (which required to export the ClientDiscardReason) I hope this was what you meant:
expect(getReasonGroupName(Outcome.CLIENT_DISCARD, 'queue_overflow')).toBe(
ClientDiscardReason.QUEUE_OVERFLOW
);
Co-authored-by: Priscila Oliveira <[email protected]>
Co-authored-by: Priscila Oliveira <[email protected]>
My attempt at updating the doc, feel free to leave comments on how it can be improved: getsentry/sentry-docs#13012 |
This PR attempts to add the necessary logic to show more detail for the 'too large' outcome.
Since I am not a front-end wizzard it might be that I am missing something though.
Relay PR: getsentry/relay#4558
Fixes: https://github.com/getsentry/team-ingest/issues/635