Bugsnag

Send your app event data from RudderStack to Bugsnag.

Bugsnag provides error reporting libraries for major software platforms which automatically detect and report errors in your applications, and capture diagnostic data required to help you reproduce and fix each error.

RudderStack supports Bugsnag as a destination to which you can seamlessly send your event data.

Getting started

RudderStack supports sending event data to Bugsnag via the following connection modes:

Connection ModeWebMobileServer
Device modeSupportedSupported-
Cloud mode---
info
In a web device mode integration, that is, using JavaScript SDK as a source, the Bugsnag native SDK is loaded from https://d2wy8f7a9ursnm.cloudfront.net/ domain. Based on your website’s content security policy, you might need to allowlist this domain to load the Bugsnag SDK successfully.

Once you have confirmed that the platform supports sending events to Bugsnag, follow these steps:

  1. From your RudderStack dashboard, add a source. Then, from the list of destinations, select Bugsnag.
  2. Assign a name to the destination and click Next.

Connection settings

To successfully configure Bugsnag as a destination, you will need to configure the following settings:

  • BugSnag Api Key: Enter your BugSnag API key. You can find the API key in your Bugsnag dashboard under Settings > Project Settings.
info
For more information on getting your BugSnag Api Key, refer to the FAQ section below.
  • Use device-mode to send events: As this is a device mode-only destination, this setting is enabled by default and cannot be disabled.
  • Release Stage: Use this setting to specify the release stage of your app:
    • Enable it for Development stage.
    • Keep it dsabled for Production stage.
  • SSL: Enabled by default, this option uses SSL while sending data to Bugsnag.

Adding Bugsnag to mobile project

Once you add Bugsnag as a destination in the RudderStack dashboard, follow these steps to add it to your mobile project depending on your integration platform:

Identify

The identify method lets you identify a user and associate them to their actions. It also lets you record any traits about them like their name, email, etc.

A sample identify call is shown below:

rudderanalytics.identify("1hKOmRA4el9Zt1WSfVJIVo4GRlm", {
  name: "Alex Keener",
  email: "alex@example.com",
});

Bugsnag will show the userId and traits in the Users tab of each error.

Error Reporting

Along with user-specific information, you can also use Bugsnag to track handled exceptions data to your dashboard using Bugsnag’s native methods. For more information on these functions, refer to Bugsnag documentation.

FAQ

Where can I find the Bugsnag API Key?

  1. Log into your Bugsnag dashboard.
  2. Click Settings at the top right corner.
  3. Click Project Settings to find the API key as shown:

What is meant by Release Stage?

You can distinguish errors that happen in different stages of your app’s release process, for example, production, development, etc.

Do I need to use SSL?

You should use SSL while sending data to Bugsnag in web device mode.


Questions? Contact us by email or on Slack