Closed Bug 1316431 Opened 9 years ago Closed 9 years ago

antenna: set up sentry for -dev

Categories

(Cloud Services :: Operations: Antenna, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: miles)

References

Details

Attachments

(1 file)

We want to use Sentry for capturing and alerting on unhandled exceptions in Antenna. This bug covers setting up Antenna -dev environment with Sentry.
I suspect we need to do code/requirements changes first, so I'll take this bug to look into that.
Assignee: miles → willkg
Status: NEW → ASSIGNED
I think we can do it with this: https://docs.sentry.io/clients/python/integrations/wsgi/ I think we can do that and if it exists, then wrap the WSGI app. I need to look into whether Falcon lets errors propagate upward. The other way to do this is do the captureException() call in the exception handler in Antenna here: https://github.com/mozilla/antenna/blob/cdf810e40f0d5d4b3a93d65db43108b5df108a21/antenna/app.py#L155 If we're going to go that route, we should probably upgrade to Falcon 1.0 first which will require us to redo our error handling. I'll look into both of those today.
Implemented the needed code in Antenna in PR: https://github.com/mozilla/antenna/pull/128 That adds a SENTRY_DSN configuration variable. Once that code lands, we can add that configuration variable to the -dev configuration and then that should work.
Sentry is at the very least working in Stage, as can be seen here: https://sentry.prod.mozaws.net/operations/antenna-stage/.
Right on! Last week, we discussed adding an endpoint or something so that we could verify it was working more easily. I still want to do that. Will try to do it this week. Relatedly, I turned most/all of those into bugs to look into this week.
I implemented the endpoint, it got deployed and I tested it on -dev just now: https://antenna.dev.mozaws.net/__broken__ We should have gotten a Sentry email, but I haven't seen one. Further, Sentry doesn't seem to be aware of the error: https://sentry.prod.mozaws.net/operations/antenna-dev/ Given that, I'm pretty sure Sentry is not working on -dev. Passing this to Miles to look into it.
Assignee: willkg → miles
Sentry is working in dev. There was an issue with secrets configuration that affected both logging and sentry, and was limited to dev. That issue should be resolved now!
I see the exception that popped up in Sentry. This looks good to me. Thank you!
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: