Crashlytics Integration

Crashlytics Integration

 is a web-based, mobile crash-reporting tool. Crashlytics provides its customers with deep analysis, detailed info about crashes including line numbers, and advanced logging.

​What does OpsGenie offer to Crashlytics users?

OpsGenie has a native integration with Crashlytics. Crashlytics can send notifications of crash reports to OpsGenie API, with detailed information. OpsGenie acts as a dispatcher for these alerts, determining the right people to notify based on on-call schedules, notifying them using email, text messages (SMS), phone calls and iPhone & Android push notifications, and escalating alerts until the alert is acknowledged or closed.


Functionality of the integration

  • When Crashlytics triggers an alert, an alert is created in OpsGenie automatically through the integration.

Add Crashlytics integration in OpsGenie

  1. Please create an OpsGenie account if you haven't done already
  2. Go to OpsGenie Crashlytics Integration page,
  3. Specify who should be notified for the Crashlytics alerts using the "Recipients" field. User(s), group(s), escalations policies and on-call schedules can be specified as the alert recipients. Auto-complete suggestions will be provided as you type. 
  4. Copy the integration API Key by clicking on the copy button or selecting. You'll be using this in Crashlytics configuration.
  5. Click on "Save Integration".

Configuration on Crashlytics

  1. In Crashlytics, go to App Settings page. Click on your app.
  2. From the opening window, select OpsGenie under the tab "Service Hooks".
  3. Paste the API key you copied before into "OpsGenie API Key"
  4. Click "Verify".

Sample payload sent from Crashlytics

{
  "event": "issue_impact_change",
  "payload": {
    "title": "issue title",
    "method": "method name",
    "impact_level": 1,
    "impacted_devices_count": 16,
    "crashes_count": 54,
    "app": {
      "name": "app name",
      "bundle_identifier": "foo.bar.baz",
      "platform": "ios"
    },
    "url": "http://crashlytics.com/full/url/to/issue"
  }
}

This payload is parsed by OpsGenie as:

{
  "event": "issue_impact_change",
  "title": "issue title",
  "method": "method name",
  "impact_level": 1,
  "impacted_devices_count": 16,
  "crashes_count": 54,
  "app_name": "app name",
  "bundle_identifier": "foo.bar.baz",
  "platform": "ios"
}

Sample alert