Rollbar

Rollbar gives you a real-time feed of all errors — including unhandled exceptions — so you’ll never miss a bug. Easily monitor all related micro-services in one view and use intelligent filters to see issues by project, environment or framework.

Install

First and foremost, you will need to make sure that you're using Rollbar as a JavaScript module within your application.

The key value that FullStory needs to use is window.FS.getCurrentSessionURL(true). You'll add this into the payload for the Rollbar item when it is created. To do this, FullStory uses the transform function as shown in the JavaScript code example below.

This can be done in any SDK that FullStory and Rollbar supports. Review the supported SDK's for both solutions online.

  1. Locate the page(s) that you’re running Rollbar on or open the global header for your web application
  2. Add the below snippet to the head of your application pages or global header:
    <script>
    var _rollbarConfig = {
       accessToken: "<ROLLBARPROJECTACCESSTOKEN>",
       captureUncaught: true,
       captureUnhandledRejections: true,
       autoInstrument: true,
       captureUsername: true,
       captureEmail: true,
       payload: {
           environment: "production",
           server: {
               host: "myapp.com",
               root: "https://myapp.com/",
               branch: "master",
           }
       },
        transform: function (payload) {

           //Ensure the FullStory object exists.
           if (window.FS && window.FS.getCurrentSessionURL) {
               payload.fullstorysessionURL = window.FS.getCurrentSessionURL(true);
            }

            return payload;

       }
    }
    </script>
  3. Deploy your changes to production
  4. To confirm the deployment is functioning properly, navigate to Rollbar and open the items in your dashboard. You will see the fullstorysessionURL column populating appropriately with new session links.
    Screen_Shot_2022-11-21_at_3.04.11_PM.png
  5. Click the link and you will be redirected to the matching FullStory session within your account
    Screen_Shot_2022-11-21_at_3.04.40_PM.png

Need to get in touch with us?

The FullStory Team awaits your every question.

Ask the Community Technical Support