Add Slack integrations to your project



 

With Firebase's Slack integration, your project can post to your Slack workspace in response to events in certain Firebase services, like new or regressed issues in Crashlytics.

Set up a Slack WebHook

Before you set up the integration in Firebase, you have to add an incoming WebHook in Slack to handle communications from Firebase. To learn how to do that, read the Slack Help Center article Incoming WebHooks for Slack.

Enable the Slack integration in the Firebase Console

Once you've set up the appropriate WebHook, you're ready to set up the integration in Firebase:

  1. Open the Firebase Console to the Integrations page.
  2. Click Install on the Slack integration card.
  3. Paste the Webhook URL from your Slack settings page to the Webhook URL field.
  4. Enter a channel name in the Default channel field. You can override this default later on a per-app or per-alert basis.
  5. Enter a name to send the messages under in the Name of posting user field.
  6. Click Verify & save.

After verifying and saving the Slack integration, you should see a confirmation message in the default channel you selected.

Configure Slack alerts

You can configure alerts by app and event type. For example, you can turn off notifications in your testing app or route high-priority notifications in your production app to an #urgent channel.

Firebase's Slack integration currently allows you to send alerts in response to three event types:

  • New Crashlytics issues: triggered when your app experiences a crash Crashlytics hasn't seen before.
  • Regressed Crashlytics issues: triggered when your app experiences a crash that you'd previously marked closed.
  • Increasing Crash Velocity issues: triggered when a single crash type affects 1% of sessions in a 60 minute period for a given app version.
Firebase enables Crashlytics alerts for regressed issues and increased velocity issues by default.

Here's how to configure alerts for your project, including selecting specific channels for each alert type:

  1. In the Firebase Console, select your project and navigate to Project Settings.
  2. Select Integrations from the top tab bar.
  3. Click Manage on the Slack integration card.
  4. Hover over the row for the alert type you'd like to configure, and click Edit Edit.
  5. For each app in your project, add a Recipient channel, and check or uncheck the Enabled box as appropriate.
  6. Click Save.

That's it! With your configurations made, Firebase will send alerts to your specified channels when your apps have new, regressed, or increasing-velocity issues as appropriate.

¿Te resultó útil este artículo?
¿Cómo podemos mejorarla?