UNPKG

1.32 kBTypeScriptView Raw
1import type { Client, Event, EventHint, 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 ignoreTransactions: Array<string | RegExp>;
8 ignoreInternal: boolean;
9 disableErrorDefaults: boolean;
10 disableTransactionDefaults: boolean;
11}
12/** Inbound filters configurable by the user */
13export declare class InboundFilters implements Integration {
14 /**
15 * @inheritDoc
16 */
17 static id: string;
18 /**
19 * @inheritDoc
20 */
21 name: string;
22 private readonly _options;
23 constructor(options?: Partial<InboundFiltersOptions>);
24 /**
25 * @inheritDoc
26 */
27 setupOnce(_addGlobaleventProcessor: unknown, _getCurrentHub: unknown): void;
28 /** @inheritDoc */
29 processEvent(event: Event, _eventHint: EventHint, client: Client): Event | null;
30}
31/** JSDoc */
32export declare function _mergeOptions(internalOptions?: Partial<InboundFiltersOptions>, clientOptions?: Partial<InboundFiltersOptions>): Partial<InboundFiltersOptions>;
33/** JSDoc */
34export declare function _shouldDropEvent(event: Event, options: Partial<InboundFiltersOptions>): boolean;
35//# sourceMappingURL=inboundfilters.d.ts.map
\No newline at end of file