UNPKG

638 BTypeScriptView Raw
1import type { Transaction } from '@sentry/types';
2/**
3 * Safety wrapper for startTransaction for the unlikely case that transaction starts before tracing is imported -
4 * if that happens we want to avoid throwing an error from profiling code.
5 * see https://github.com/getsentry/sentry-javascript/issues/4731.
6 *
7 * @experimental
8 */
9export declare function onProfilingStartRouteTransaction(transaction: Transaction | undefined): Transaction | undefined;
10/**
11 * Patches startTransaction and stopTransaction with profiling logic.
12 */
13export declare function addProfilingExtensionMethods(): void;
14//# sourceMappingURL=hubextensions.d.ts.map
\No newline at end of file