joyent / conch-api

Datacenter build and management service
Mozilla Public License 2.0
22 stars 11 forks source link

Support sending client errors to Rollbar #867

Closed sungo closed 5 years ago

sungo commented 5 years ago

I'd like to be able to send notifications of client errors (specifically 400 class errors that are not auth or 404) to Rollbar.

I would like to do so by user agent.

For instance, let's say we deploy a version of the API and I didn't do enough testing in conch shell. The shell would send bad data to the API which would return a 400-class error. While one hopes my customers would let me know, it'd be nice to also send those errors into Rollbar where they could be tracked and monitored.

sungo commented 5 years ago

When the DRD adds a standard user agent ( https://github.com/joyent/conch-relay/issues/186 ), it might be advantageous to send its errors to Rollbar.