UNPKG

940 BTypeScriptView Raw
1import type { Event, EventProcessor, Integration } from '@sentry/types';
2/**
3 * Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]
4 * This exists because we do not want to await async profiler.stop calls as transaction.finish is called
5 * in a synchronous context. Instead, we handle sending the profile async from the promise callback and
6 * rely on being able to pull the event from the cache when we need to construct the envelope. This makes the
7 * integration less reliable as we might be dropping profiles when the cache is full.
8 *
9 * @experimental
10 */
11export declare class BrowserProfilingIntegration implements Integration {
12 readonly name: string;
13 /**
14 * @inheritDoc
15 */
16 setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void): void;
17 /**
18 * @inheritDoc
19 */
20 handleGlobalEvent(event: Event): Event;
21}
22//# sourceMappingURL=integration.d.ts.map
\No newline at end of file