How to use the @sentry/browser.Severity.Info function in @sentry/browser

To help you get started, we’ve selected a few @sentry/browser 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 shopgate / pwa / libraries / common / subscriptions / error.js View on Github external
}));
    dispatch(historyPop());
  });

  const { enabled, level, sampleRate } = appConfig.sentry;
  // Is not enabled
  if (!enabled) {
    return;
  }

  const severityMap = {
    [Severity.Fatal]: SentrySeverity.Fatal,
    [Severity.Error]: SentrySeverity.Error,
    [Severity.Critical]: SentrySeverity.Critical,
    [Severity.Warning]: SentrySeverity.Warning,
    [Severity.Info]: SentrySeverity.Info,
    [Severity.Debug]: SentrySeverity.Debug,
  };

  let trackedSeverities = Object.getOwnPropertySymbols(severityMap).map(s => severityMap[s]);
  const minSeverityIndex = trackedSeverities.indexOf(level);
  if (minSeverityIndex > -1) {
    trackedSeverities = trackedSeverities.slice(0, minSeverityIndex + 1);
  }

  subscribe(appWillStart$, ({ getState }) => {
    init({
      dsn: 'https://1a444b262ac6405594ab33fb0102b377@sentry.io/1398210',
      environment: env,
      debug: env === 'development',
      release: pckVersion,
      attachStacktrace: true,
github codesandbox / codesandbox-client / packages / app / src / app / index.js View on Github external
// We try as the payload might cause a stringify error
      try {
        logBreadcrumb({
          category: 'overmind-action',
          message: event.actionName,
          level: Severity.Info,
          data: {
            value: JSON.stringify(event.value),
          },
        });
      } catch (e) {
        logBreadcrumb({
          category: 'overmind-action',
          message: event.actionName,
          level: Severity.Info,
        });
      }
    });
  } catch (error) {
github codesandbox / codesandbox-client / packages / app / src / app / index.js View on Github external
overmind.eventHub.on('action:start', event => {
      if (ignoredOvermindActions.includes(event.actionName)) {
        return;
      }

      // We try as the payload might cause a stringify error
      try {
        logBreadcrumb({
          category: 'overmind-action',
          message: event.actionName,
          level: Severity.Info,
          data: {
            value: JSON.stringify(event.value),
          },
        });
      } catch (e) {
        logBreadcrumb({
          category: 'overmind-action',
          message: event.actionName,
          level: Severity.Info,
        });
      }
    });
  } catch (error) {
github trustwallet / platform / src / app / coins / providers / tezos / services / tezos.service.ts View on Github external
tap(hash => {
        const message = `Tezos Tx signed. Encoded: ${hash}. Address: ${fromAccount}`;
        console.log(message);
        Sentry.captureMessage(message, Severity.Info);
      }),
      switchMap(result => this.broadcastTx(result)),
github trustwallet / platform / src / app / coins / providers / tezos / services / tezos.service.ts View on Github external
hash => {
          const message = `Tezos Tx broadcasted. Hash: ${hash}. Address: ${fromAccount}`;
          console.log(message);
          Sentry.captureMessage(message, Severity.Info);
        },
        error => {