How to use the @sentry/electron.configureScope function in @sentry/electron

To help you get started, we’ve selected a few @sentry/electron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixel-point / kube-forwarder / src / common / configure-sentry.js View on Github external
// Use a custom navigation breadcrumb in src/renderer/router/index.js
          return new Breadcrumbs({ history: false })
        }

        return integration
      })

      if (configOverrides.integrations) {
        return configOverrides.integrations(integrations)
      }

      return integrations
    }
  })

  Sentry.configureScope(scope => {
    scope.setTag('app.version', packageJson.version)
    scope.setTag('app.build', process.env.BUILD)
    scope.setTag('app.env', process.env.NODE_ENV)
  })
}
github web-pal / chronos-timetracker / app / renderer / sagas / initialize.js View on Github external
function identifyInSentryAndMixpanel(host: string, userData: any): void {
  if (process.env.DISABLE_MIXPANEL !== '1') {
    mixpanel.identify((`${host} - ${userData.emailAddress}`));
    mixpanel.people.set({
      host,
      version,
      locale: userData.locale,
      $timezone: userData.timeZone,
      $name: userData.displayName,
      $email: userData.emailAddress,
      $distinct_id: `${host} - ${userData.emailAddress}`,
    });
    Sentry.configureScope((scope) => {
      scope.setUser({
        host,
        locale: userData.locale,
        timeZone: userData.timeZone,
        name: userData.displayName,
        email: userData.emailAddress,
      });
    });
  }
}