Rollbar quick info
Rollbar accepts device-mode data only from Analytics.js.
When you enable Rollbar in Segment, we’ll start sending data to the Rollbar API for your account. Currently, Rollbar will send data from our analytics.js library.
To start pushing user data to Rollbar, toggle the destination on and add your Rollbar access token. Your access token can be found in your Rollbar Settings > Access Tokens.
Enabling Source Maps
Enable source maps and fill out the Code Version in your Rollbar settings in the Segment UI.
Provide your source map. There are two ways you can do this:
b. Upload pre-deploy: at the beginning of your deploy script, upload a source map package using Rollbar’s API.
For more detail on providing your source map, checkout Rollbar’s documentation here.
Supported Sources and Connection Modes
Before you start, make sure Rollbar supports the source type and connection mode you’ve chosen to implement. You can learn more about connection modes here.
Segment lets you change these destination settings from the Segment app without having to touch any code.
|Capture uncaught exceptions||
Record uncaught exceptions from
|Capture Unhandled Rejections||
Catch and report unhandled Promise rejections, such as Promise failures that do not have a corresponding
|Guess Uncaught Frames||
When this option is enabled, Rollbar will guess which frames the error was thrown from when the browser does not provide line and column numbers.
|Include custom user data with Rollbar's error tracking||
When this option is enabled we will store metadata about the user on
If you want to ignore a specific exception message, say for a third-party browser plugin that is throwing errors, you can add them here and Rollbar will ignore exceptions matching those messages.
|Enable Source Map||
When this option is enabled, we’ll let Rollbar know you have source maps enabled. Be sure to implement either Option A or B in these instructions to set up source maps with Rollbar as well as fill out Code Version in you Rollbar Integration settings in your Segment source.
This page was last modified: 20 Oct 2020
Questions? Problems? Need more info? Contact us, and we can help!