How to use the @sentry/minimal.configureScope 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 filestack / filestack-js / src / lib / client.ts View on Github external
constructor(apikey: string, options?: ClientOptions) {
    super();

    /* istanbul ignore next */
    Sentry.configureScope(scope => {
      scope.setTag('apikey', apikey);
      scope.setTag('sdk-version', getVersion());
      scope.setExtra('clientOptions', options);
    });

    if (!apikey || typeof apikey !== 'string' || apikey.length === 0) {
      throw new Error('An apikey is required to initialize the Filestack client');
    }
    const { urls } = config;
    this.session = { apikey, urls };

    if (options) {
      const { cname, security } = options;

      this.setSecurity(security);
      this.setCname(cname);

@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