How to use the @sentry/utils.isMatchingPattern function in @sentry/utils

To help you get started, we’ve selected a few @sentry/utils 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 getsentry / sentry-javascript / packages / integrations / src / tracing.ts View on Github external
const isWhitelisted = self._options.tracingOrigins.some((origin: string | RegExp) =>
              isMatchingPattern(url, origin),
            );
github getsentry / sentry-javascript / packages / core / src / integrations / inboundfilters.ts View on Github external
    return !url ? true : options.whitelistUrls.some(pattern => isMatchingPattern(url, pattern));
  }
github getsentry / sentry-javascript / packages / core / src / integrations / inboundfilters.ts View on Github external
      (options.ignoreErrors as Array).some(pattern => isMatchingPattern(message, pattern)),
    );
github getsentry / sentry-javascript / packages / apm / src / integrations / tracing.ts View on Github external
shouldCreateSpanForRequest(url: string): boolean {
        const origins = (_options && _options.tracingOrigins) || defaultTracingOrigins;
        return (
          origins.some((origin: string | RegExp) => isMatchingPattern(url, origin)) &&
          !isMatchingPattern(url, 'sentry_key')
        );
      },
      startTransactionOnLocationChange: true,
github getsentry / sentry-javascript / packages / core / src / integrations / inboundfilters.ts View on Github external
    return !url ? true : options.whitelistUrls.some(pattern => isMatchingPattern(url, pattern));
  }
github getsentry / sentry-javascript / packages / core / src / integrations / inboundfilters.ts View on Github external
      (options.ignoreErrors as Array).some(pattern => isMatchingPattern(message, pattern)),
    );
github getsentry / sentry-javascript / packages / apm / src / integrations / tracing.ts View on Github external
          origins.some((origin: string | RegExp) => isMatchingPattern(url, origin)) &&
          !isMatchingPattern(url, 'sentry_key')
github getsentry / sentry-javascript / packages / integrations / src / tracing.ts View on Github external
self._options.tracingOrigins.forEach((whiteListUrl: string | RegExp) => {
            if (!whiteListed) {
              whiteListed = isMatchingPattern(url, whiteListUrl);
            }
          });