How to use the @sentry/minimal.captureException function in @sentry/minimal

To help you get started, we’ve selected a few @sentry/minimal 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 mentos1386 / nest-raven / lib / raven.interceptor.ts View on Github external
private captureException(scope: Scope, exception): void {
    if (this.options.level) scope.setLevel(this.options.level);
    if (this.options.fingerprint) scope.setFingerprint(this.options.fingerprint);
    if (this.options.extra) for (const key in this.options.extra) {
      if(this.options.extra.hasOwnProperty(key)) scope.setExtra(key, this.options.extra[key]);
    }
    for (const tag in this.options.tags) {
      scope.setTag(tag, this.options.tags[tag])
    }

    Sentry.captureException(exception);
  }
github filestack / filestack-js / src / lib / client.ts View on Github external
Sentry.withScope(scope => {
        scope.setExtras(e.details);
        scope.setExtras({ uploadOptions: options, storeOptions });
        Sentry.captureException(e);
      });
github getsentry / sentry-javascript / packages / browser / src / integrations / onunhandledrejection.ts View on Github external
public handler(event: PromiseRejectionEvent): void {
    captureException(event.reason);
  }
  /**

@sentry/minimal

Sentry minimal library that can be used in other packages

MIT
Latest version published 3 years ago

Package Health Score

80 / 100
Full package analysis

Similar packages