UNPKG

1.12 kBTypeScriptView Raw
1import { Event, EventProcessor, Hub, Integration } from '@sentry/types';
2/** Options for the InboundFilters integration */
3export interface InboundFiltersOptions {
4 allowUrls: Array<string | RegExp>;
5 denyUrls: Array<string | RegExp>;
6 ignoreErrors: Array<string | RegExp>;
7 ignoreInternal: boolean;
8}
9/** Inbound filters configurable by the user */
10export declare class InboundFilters implements Integration {
11 private readonly _options;
12 /**
13 * @inheritDoc
14 */
15 static id: string;
16 /**
17 * @inheritDoc
18 */
19 name: string;
20 constructor(_options?: Partial<InboundFiltersOptions>);
21 /**
22 * @inheritDoc
23 */
24 setupOnce(addGlobalEventProcessor: (processor: EventProcessor) => void, getCurrentHub: () => Hub): void;
25}
26/** JSDoc */
27export declare function _mergeOptions(internalOptions?: Partial<InboundFiltersOptions>, clientOptions?: Partial<InboundFiltersOptions>): Partial<InboundFiltersOptions>;
28/** JSDoc */
29export declare function _shouldDropEvent(event: Event, options: Partial<InboundFiltersOptions>): boolean;
30//# sourceMappingURL=inboundfilters.d.ts.map
\No newline at end of file