How to use the @sentry/browser.captureException 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 loomnetwork / dashboard / src / store / ethereum / index.ts View on Github external
.catch((error) => {
        Sentry.captureException(error)
        console.error(error)
        feedbackModule.showError(i18n.t("feedback_msg.error.connect_wallet_prob").toString())
      })
  } else {
github ollelauribostrom / rebus / src / js / app.js View on Github external
const confettiCanon = document.querySelector('.confetti-canon');
            actions.setInput(input, wordIndex, charIndex);
            actions.check(confettiCanon);
          }
        }),
        ChangeButton({
          className: 'change-button--next',
          onClick: () => actions.next()
        }),
        Hint(),
        ProgressBar()
      ),
      document.querySelector('.root')
    );
  } catch (err) {
    return Sentry.captureException(err);
  }
}
github getsentry / sentry / src / sentry / static / sentry / app / components / dropdownMenu.tsx View on Github external
Sentry.withScope(scope => {
        scope.setExtra('event', e);
        scope.setExtra('relatedTarget', e.relatedTarget);
        Sentry.captureException(err);
      });
    }
github assembl / assembl / assembl / static2 / js / app / components / common / GlobalErrorBoundary.jsx View on Github external
Sentry.withScope((scope) => {
      Object.keys(info).forEach((key) => {
        scope.setExtra(key, info[key]);
      });
      Sentry.captureException(error);
    });
github gitlabhq / gitlabhq / app / assets / javascripts / clusters_list / store / actions.js View on Github external
Sentry.withScope((scope) => {
    scope.setTag('javascript_clusters_list', tag);
    Sentry.captureException(error);
  });
};
github codeforthailand / election-live / src / components / ErrorBoundary.js View on Github external
Sentry.withScope(scope => {
      Object.keys(errorInfo).forEach(key => {
        scope.setExtra(key, errorInfo[key])
      })
      scope.setExtra("name", this.props.name)
      Sentry.captureException(error)
    })
  }
github getsentry / sentry / src / sentry / static / sentry / app / components / avatar / actorAvatar.tsx View on Github external
Sentry.withScope(scope => {
      scope.setExtra('actor', actor);
      Sentry.captureException(new Error('Unknown avatar type'));
    });
github getsentry / sentry / src / sentry / static / sentry / app / views / routeNotFound.tsx View on Github external
Sentry.withScope(scope => {
      scope.setFingerprint(['RouteNotFound']);
      Sentry.captureException(new Error('Route not found'));
    });
  }
github linode / manager / packages / manager / src / exceptionReporting.ts View on Github external
}

      if (tags) {
        Object.keys(tags).forEach(tagKey => {
          scopes.setTag(tagKey, tags[tagKey]);
        });
      }

      scopes.setUser({
        user_id: userID,
        email: userEmail,
        username
      });
    });

    captureException(error);
  }
};
github wavesplatform / WavesExplorerLite / src / js / services / ErrorReportingService.js View on Github external
Sentry.withScope(scope => {
            Object.keys(errorInfo).forEach(key => {
                scope.setExtra(key, errorInfo[key]);
            });
            Sentry.captureException(error);
        });
    }