How to use the @sentry/minimal.withScope 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
tap(null, (exception) => {
        if (this.shouldReport(exception)) {
          Sentry.withScope(scope => {
            // TODO: When https://github.com/nestjs/nest/issues/1581 gets implemented switch to that
            switch(this.options.context){
              case 'Http': return this.captureHttpException(scope, http, exception);
              case 'Ws': return this.captureWsException(scope, ws, exception);
              case 'Rpc': return this.captureRpcException(scope, rpc, exception);
            }
          });
        }
      })
    );
github filestack / filestack-js / src / lib / client.ts View on Github external
upload.on('error', (e) => {
      Sentry.withScope(scope => {
        scope.setExtras(e.details);
        scope.setExtras({ uploadOptions: options, storeOptions });
        Sentry.captureException(e);
      });

      this.emit('upload.error', e);
    });

@sentry/minimal

Sentry minimal library that can be used in other packages

MIT
Latest version published 2 years ago

Package Health Score

88 / 100
Full package analysis

Similar packages