Crashlytics Integration

Crashlytics 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.

288

📘

Currently, we do not support Firebase Crashlytics.

What does Opsgenie offer 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, determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls and iPhone & Android push notifications, and escalates 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 so already.
  2. Go to Opsgenie Crashlytics Integration page.

🚧

For Free and Essentials plans, you can only add the integrations from the Team Dashboards, please use the alternative instructions given below to add this integration.

  1. Specify who is notified of Crashlytics alerts using the Teams field. Auto-complete suggestions are provided as you type.

📘

An alternative for Step 2) and Step 3) is to add the integration from the Team Dashboard of the team which will own the integration. To add an integration directly to a team, navigate to the Team Dashboard and open Integrations tab. Click Add Integration and select the integration that you would like to add.

  1. Copy the integration API Key to use in Crashlytics configuration.
  2. Click Save Integration.
2134

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.
666

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"
  }
}
{
  "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

2438