UNPKG

1.33 kBTypeScriptView Raw
1import { Integration } from '@sentry/types';
2/** JSDoc */
3interface InboundFiltersOptions {
4 allowUrls: Array<string | RegExp>;
5 denyUrls: Array<string | RegExp>;
6 ignoreErrors: Array<string | RegExp>;
7 ignoreInternal: boolean;
8 /** @deprecated use {@link InboundFiltersOptions.allowUrls} instead. */
9 whitelistUrls: Array<string | RegExp>;
10 /** @deprecated use {@link InboundFiltersOptions.denyUrls} instead. */
11 blacklistUrls: Array<string | RegExp>;
12}
13/** Inbound filters configurable by the user */
14export declare class InboundFilters implements Integration {
15 private readonly _options;
16 /**
17 * @inheritDoc
18 */
19 static id: string;
20 /**
21 * @inheritDoc
22 */
23 name: string;
24 constructor(_options?: Partial<InboundFiltersOptions>);
25 /**
26 * @inheritDoc
27 */
28 setupOnce(): void;
29 /** JSDoc */
30 private _shouldDropEvent;
31 /** JSDoc */
32 private _isSentryError;
33 /** JSDoc */
34 private _isIgnoredError;
35 /** JSDoc */
36 private _isDeniedUrl;
37 /** JSDoc */
38 private _isAllowedUrl;
39 /** JSDoc */
40 private _mergeOptions;
41 /** JSDoc */
42 private _getPossibleEventMessages;
43 /** JSDoc */
44 private _getLastValidUrl;
45 /** JSDoc */
46 private _getEventFilterUrl;
47}
48export {};
49//# sourceMappingURL=inboundfilters.d.ts.map
\No newline at end of file