Skip to content

Conversation

@nicohrubec
Copy link
Member

@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
Member 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
Member 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

4 participants