profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Sentry integration for error handling

Open digitarald opened this issue 8 years ago • 1 comments

Using Sentry we want to aggregate errors from production.

Error cases that should be reported:

  • Failed symbolication
  • File could not be loaded
  • UI errors

Requirements:

  • Sentry should only aggregate for production builds
  • Script should not be included when DNT is enabled

So far I am aware of 3 possible paths to use Sentry:

  1. Catching errors in redux: https://github.com/captbaritone/raven-for-redux
  2. Catching errors in React:
  • https://sentry.prod.mozaws.net/operations/devtools/getting-started/javascript-react/
  • https://sentry.io/for/react/
  1. Report error like screenshots (concerns with including Raven)
  • https://github.com/mozilla-services/screenshots/blob/master/docs/error-handling.md
  • https://github.com/mozilla-services/screenshots/blob/master/addon/webextension/background/senderror.js

An issue with Raven that Screenshots mentioned is matching the version of Raven to our instance of Sentry. We might want to consider not using Raven but catching and sending the reports like screenshot does.

┆Issue is synchronized with this Jira Task

digitarald avatar Sep 14 '17 21:09 digitarald

@digitarald are we still planning on moving forward with this work?

gregtatum avatar Nov 28 '17 21:11 gregtatum