lib/utils/sentry.js/initializeErrorReporter
function initializeErrorReporter(invocationId) {
  const config = configUtils.getConfig();
  const trackingDisabled = config.trackingDisabled;

  // exit if tracking disabled or inside CI system
  if (SLS_DISABLE_ERROR_TRACKING || trackingDisabled || IS_CI) {
    // console.log('tracking off')
    return false;
  }

  // initialize Error tracking
  raven.config(DSN, {
    environment: 'production',
    autoBreadcrumbs: true,
    release: pkg.version,
    extra: {
      frameworkId: config.frameworkId,
      invocationId,
    },
  });

  if (config.userId) {
    raven.setContext({
      user: {
        id: config.userId,
      },
    });
  }

  raven.disableConsoleAlerts();

  raven.install();

  return true;
}