Skip to content

Add Sentry to be used on GCP runners#174

Merged
mikehquan19 merged 2 commits into
developfrom
add-sentry
Jul 24, 2026
Merged

Add Sentry to be used on GCP runners#174
mikehquan19 merged 2 commits into
developfrom
add-sentry

Conversation

@TyHil

@TyHil TyHil commented May 10, 2026

Copy link
Copy Markdown
Member

The goal of this PR is to eliminate having to periodically check the GCP Cloud Run Jobs tab to make sure no jobs have failed. By adding Sentry we will be able to see errors from the GCP runners and have them ping the Discord.

Prior to merge, both dev and prod secrets in GCP need to be updated to include the below:

SENTRY_ENVIRONMENT=production
SENTRY_DSN=https://f8d2cc88fe76823ff16022e91a0c4fb8@o4504918397353984.ingest.us.sentry.io/4511367957184512

The secrets must be updated independently as they are different (have different MONGODB_URIs etc.)

Since the SENTRY_DSN variable will only be specified on production, we should only get errors from production. I've added a new Sentry project for API Tools and added it to the existing alert that pings the Discord channel when there is a new error. I felt that alert only sent a ping when there was a new issue, but not a new event (single instance of an issue) but that's not how it seems to be set up so we'll have to see.

I couldn't figure out how to add the Sentry go package without so many go.mod and go.sum changes. I tried go get github.com/getsentry/sentry-go but then when I ran build.bat the package got moved up into the first require block in go.mod, and a bunch of other things changed. Lmk how I can best resolve this.

@mikehquan19
mikehquan19 requested review from a team as code owners July 24, 2026 21:47

@mikehquan19 mikehquan19 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just pushed commit updating dependencies and resolving conflicts.

Looking good, will merge and rerun the job to see the magic.

@mikehquan19
mikehquan19 merged commit 7593231 into develop Jul 24, 2026
3 of 4 checks passed
@mikehquan19
mikehquan19 deleted the add-sentry branch July 24, 2026 22:59
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