1 | import { Event, Integration } from '@sentry/types';
|
2 |
|
3 | interface BreadcrumbsOptions {
|
4 | console: boolean;
|
5 | dom: boolean | {
|
6 | serializeAttribute: string | string[];
|
7 | };
|
8 | fetch: boolean;
|
9 | history: boolean;
|
10 | sentry: boolean;
|
11 | xhr: boolean;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare class Breadcrumbs implements Integration {
|
18 | |
19 |
|
20 |
|
21 | static id: string;
|
22 | |
23 |
|
24 |
|
25 | name: string;
|
26 |
|
27 | private readonly _options;
|
28 | |
29 |
|
30 |
|
31 | constructor(options?: Partial<BreadcrumbsOptions>);
|
32 | /**
|
33 | * Create a breadcrumb of `sentry` from the events themselves
|
34 | */
|
35 | addSentryBreadcrumb(event: Event): void;
|
36 | /**
|
37 | * Instrument browser built-ins w/ breadcrumb capturing
|
38 | * - Console API
|
39 | * - DOM API (click/typing)
|
40 | * - XMLHttpRequest API
|
41 | * - Fetch API
|
42 | * - History API
|
43 | */
|
44 | setupOnce(): void;
|
45 | }
|
46 | export {};
|
47 |
|
\ | No newline at end of file |