In the web device mode integration, that is, using JavaScript SDK as a source, RudderStack loads the Rollbar native SDK from the https://cdn.rollbar.com/ domain.
Based on your website’s content security policy, you might need to allowlist this domain to load the Rollbar SDK successfully.
Get started
Once you have confirmed that the source platform supports sending events to Rollbar, follow these steps:
From your RudderStack dashboard, add a source. Then, from the list of destinations, select Rollbar.
Assign a name to the destination and click Continue.
Connection settings
To successfully configure Rollbar as a destination, you will need to configure the following settings:
Access Token: Enter your Rollbar access token. For more information on obtaining your Rollbar access token, refer to the FAQ section below.
Capture Uncaught Exceptions: This setting lets you record any uncaught exceptions from the window.oneerror toggle.
Capture Unhandled Rejections: Enable this setting to capture and report any unhandled Promise rejections, for example, Promise failures.
Guess Uncaught Frames: When this option is enabled, Rollbar guesses the frames in which an error was thrown. This is helpful in cases where the browser does not provide any line or column numbers.
Code Version: Enter the version string, for example, a version number. This setting is applicable if you have enabled the Source Maps setting in Rollbar.
Environment: Specify the environment in which your code is running. If you do not set any environment name, the events will be visible under the unknown environment in Rollbar.
Ignored Messages: Rollbar will ignore the exception messages added in this field. For example, you can ignore an exception message for a third-party browser plugin that is throwing errors.
Source Map: Enable this setting for Rollbar to perform efficient stack tracing and error grouping.
Client-side Events Filtering: This setting lets you specify which events should be blocked or allowed to flow through to Rollbar. For more information on this setting, refer to the Client-side Events Filtering guide.
Use device mode to send events: As this is a web device mode-only destination, this setting is enabled by default and cannot be disabled.
Identify
You can use the identify call to identify a user in Rollbar.
RudderStack sends the userId and all user traits present in the event to Rollbar along with all errors.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.