Skip to content
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

chore: send http exceptions to Sentry #525

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

pmig
Copy link
Member

@pmig pmig commented Feb 19, 2025

No description provided.

Signed-off-by: Philip Miglinci <pmig@glasskube.com>
@pmig pmig requested a review from christophenne February 19, 2025 13:18
@@ -13,6 +15,10 @@ export const errorToastInterceptor: HttpInterceptorFn = (req, next) => {
if (msg) {
toast.error(msg);
}

if (err.status && (err.status === 400 || err.status >= 500)) {
Copy link
Member

Choose a reason for hiding this comment

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

Internal server errors (>= 500) are tracked via backend already, so there would be lots of duplicates I think?

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 on purpose. We might get additional context. I hope Sentry somehow aggregates them.

@pmig pmig requested a review from christophenne February 19, 2025 14:44
@christophenne christophenne merged commit 31ef7da into main Feb 19, 2025
10 checks passed
@christophenne christophenne deleted the pmig/sentry-error-capture branch February 19, 2025 14:46
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.

2 participants