lib/utils/sentry.js/initializeErrorReporter
function initializeErrorReporter(invocationId) {
  const trackingConfigFilePath = path.join(__dirname, '..', '..', getTrackingConfigFileName());
  return readFileIfExists(trackingConfigFilePath).then(trackingConfig => {
    const config = configUtils.getConfig();
    const trackingDisabled = config.trackingDisabled;
    // exit if tracking disabled or inside CI system
    if (!trackingConfig || SLS_DISABLE_ERROR_TRACKING || trackingDisabled || IS_CI) {
      return BbPromise.resolve();
    }

    const DSN = trackingConfig.sentryDSN;

    // 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 BbPromise.resolve();
  });
}