-
Notifications
You must be signed in to change notification settings - Fork 0
Log errors to Sentry (SCP-2525) #117
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #117 +/- ##
==========================================
+ Coverage 50.19% 50.27% +0.07%
==========================================
Files 20 20
Lines 2526 2538 +12
==========================================
+ Hits 1268 1276 +8
- Misses 1258 1262 +4
Continue to review full report at Codecov.
|
jlchang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
devonbush
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks great, just minor comment updates
| See logs in Sentry: | ||
| https://sentry.io/organizations/broad-institute/issues/?project=1424198 | ||
| ''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love these links to the docs. I might move them up to where you import sentry, since these are more general
Co-authored-by: Devon <dbush@broadinstitute.org>
…ngest-pipeline into ew-sentry-error-log
This improves observability for Ingest Pipeline by logging errors to Sentry, our main error monitoring platform.
Previously, Ingest Pipeline errors were only 1) logged to an ingest-operation-specific
errors.txtfile, and 2) emailed in summary form to the user.Now, such errors are also logged to Sentry. This lets us easily correlate and inspect errors in Ingest Pipeline, using stack traces and other rich debugging context, in the same place we use for our main Rails codebase. You can find example Ingest Pipeline errors in Sentry by filtering on
logger:ingest_pipeline. Ingest Pipeline errors also appear in the default unfiltered view.I tested this manually by setting the
SENTRY_DSNenvironment variable in my terminal (as described in the updated README instructions) and ingesting known-bad files via example commands noted atopingest_pipeline.py. I also manually tested the integration by pointing my local SCP Rails app to a development Docker build in GCR (gcr.io/broad-singlecellportal-staging/scp-ingest-pipeline-development:1.4.0_deb29ad).See broadinstitute/single_cell_portal_core/pull/675 for a small, coupled PR.
This satisfies SCP-2525.