Skip to content

Add Sentry to be used on GCP runners#174

Open
TyHil wants to merge 1 commit intodevelopfrom
add-sentry
Open

Add Sentry to be used on GCP runners#174
TyHil wants to merge 1 commit intodevelopfrom
add-sentry

Conversation

@TyHil
Copy link
Copy Markdown
Member

@TyHil TyHil commented May 10, 2026

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.

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.

1 participant