Skip to content

feat(nestjs): Filter 4xx errors #12695

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

Merged
merged 9 commits into from
Jul 1, 2024
Merged

Conversation

nicohrubec
Copy link
Contributor

@nicohrubec nicohrubec commented Jun 28, 2024

Small change filtering expected errors from being reported to sentry in the nestjs sdk.

Tested manually on my sample app.

Fixes #12523

@nicohrubec nicohrubec requested a review from lforst June 28, 2024 13:32
@nicohrubec nicohrubec marked this pull request as ready for review June 28, 2024 13:36
@lforst lforst changed the title fix(nestjs): Filter 4xx errors feat(nestjs): Filter 4xx errors Jul 1, 2024
@lforst
Copy link
Contributor

lforst commented Jul 1, 2024

Generally lgtm, would you mind adding an E2E test?

@nicohrubec
Copy link
Contributor Author

@lforst sure, will take a look

Comment on lines 14 to 16
console.log("UNEXPECTED EXCEPTION");
console.log(errorEvent);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log("UNEXPECTED EXCEPTION");
console.log(errorEvent);

Comment on lines 45 to 47
console.log("EXPECTED EXCEPTION");
console.log(errorEvent);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log("EXPECTED EXCEPTION");
console.log(errorEvent);

I guess a leftover of debugging? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Sorry the test was not done yet, I just pushed for debugging. Should have put it back into draft mode :)

@nicohrubec nicohrubec marked this pull request as draft July 1, 2024 11:22
@nicohrubec nicohrubec marked this pull request as ready for review July 1, 2024 14:42
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.

Nestjs integration reports 404 errors to sentry
3 participants