unitedstates / inspectors-general

Collecting reports from Inspectors General across the US federal government.
https://sunlightfoundation.com/blog/2014/11/07/opengov-voices-opening-up-government-reports-through-teamwork-and-open-data/
Creative Commons Zero v1.0 Universal
106 stars 21 forks source link

Integrate scraper errors into Slack #167

Closed divergentdave closed 9 years ago

divergentdave commented 9 years ago

We should add an error reporting option to fire off a Webhook to post in a Slack channel when a scraper encounters an error, and then enable it on someone's production server.

See also: https://oversight.slack.com/services/new/incoming-webhook

LindsayYoung commented 9 years ago

I like that idea.

Sent from my iPhone

On Sep 6, 2014, at 7:13 PM, David Cook notifications@github.com wrote:

We should add an error reporting option to fire off a Webhook to post in a Slack channel when a scraper encounters an error, and then enable it on someone's production server.

See also: https://oversight.slack.com/services/new/incoming-webhook

— Reply to this email directly or view it on GitHub.

divergentdave commented 9 years ago

Initial support added in 2a0c9b76452f7428b2f627435af8e0df067260cc, I did some testing with DMs to myself, and it seems to work well enough. Right now it's just shoving the entire exception and stack trace into a text message, we could add some finesse down the line by making it an "attachment."

konklone commented 9 years ago

That might be nice, but yeah this works great right now! @divergentdave, I'll update my server to use the webhook and post to #errors.