UNPKG

1.11 kBTypeScriptView Raw
1import { Event, Integration } from '@sentry/types';
2/** JSDoc */
3interface 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 * Default Breadcrumbs instrumentations
15 * TODO: Deprecated - with v6, this will be renamed to `Instrument`
16 */
17export declare class Breadcrumbs implements Integration {
18 /**
19 * @inheritDoc
20 */
21 static id: string;
22 /**
23 * @inheritDoc
24 */
25 name: string;
26 /** JSDoc */
27 private readonly _options;
28 /**
29 * @inheritDoc
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}
46export {};
47//# sourceMappingURL=breadcrumbs.d.ts.map
\No newline at end of file