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: filter sentry errors by env #752

Merged
merged 7 commits into from
Sep 18, 2024
Merged

Conversation

vjousse
Copy link
Collaborator

@vjousse vjousse commented Sep 16, 2024

🔧 Problem

Production and review app errors are mix and matched in Sentry.

Notion card

🍰 Solution

Use a different environment in Sentry for production and review-apps errors.

🚨 Points to watch / comments

I've introduced a new file scalingo.json used to configure review apps https://doc.scalingo.com/platform/app/review-apps#run-a-task-after-each-deployment-of-a-review-app

I have CORS issue with the envelope call on the review-app without knowing why. Could be a server config/version issue cf. getsentry/sentry#24637

🏝️ How to test

Clicking on the footer should throw an error (the code will be removed before merging).

@vjousse
Copy link
Collaborator Author

vjousse commented Sep 17, 2024

At least it works for sentry errors from node
image

Can't test for the errors in the browser as there are CORS errors with the sentry hosted by beta.

@vjousse vjousse marked this pull request as ready for review September 17, 2024 13:37
@vjousse vjousse requested a review from n1k0 September 17, 2024 13:37
Copy link
Member

@n1k0 n1k0 left a comment

Choose a reason for hiding this comment

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

A few remarks and questions

index.js Show resolved Hide resolved
scalingo.json Show resolved Hide resolved
index.js Show resolved Hide resolved
@vjousse vjousse requested a review from n1k0 September 18, 2024 14:47
Copy link
Member

@n1k0 n1k0 left a comment

Choose a reason for hiding this comment

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

Looks great!

@vjousse vjousse changed the title fix: filter sentry errors by env chore: filter sentry errors by env Sep 18, 2024
@vjousse vjousse merged commit 59d810b into master Sep 18, 2024
7 checks passed
@vjousse vjousse deleted the fix/filter-sentry-err-by-env branch September 18, 2024 15:17
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