UNPKG

892 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 * Wraps startTransaction and stopTransaction with profiling related logic.
12 * startProfileForTransaction is called after the call to startTransaction in order to avoid our own code from
13 * being profiled. Because of that same reason, stopProfiling is called before the call to stopTransaction.
14 */
15export declare function startProfileForTransaction(transaction: Transaction): Transaction;
16//# sourceMappingURL=hubextensions.d.ts.map
\No newline at end of file