UNPKG

927 BTypeScriptView Raw
1import type { Transaction } from '@sentry/types';
2import type { Hub } from '../hub';
3/**
4 * The `extractTraceparentData` function and `TRACEPARENT_REGEXP` constant used
5 * to be declared in this file. It was later moved into `@sentry/utils` as part of a
6 * move to remove `@sentry/tracing` dependencies from `@sentry/node` (`extractTraceparentData`
7 * is the only tracing function used by `@sentry/node`).
8 *
9 * These exports are kept here for backwards compatability's sake.
10 *
11 * TODO(v7): Reorganize these exports
12 *
13 * See https://github.com/getsentry/sentry-javascript/issues/4642 for more details.
14 */
15export { TRACEPARENT_REGEXP, extractTraceparentData } from '@sentry/utils';
16/** Grabs active transaction off scope, if any */
17export declare function getActiveTransaction<T extends Transaction>(maybeHub?: Hub): T | undefined;
18export { stripUrlQueryAndFragment } from '@sentry/utils';
19//# sourceMappingURL=utils.d.ts.map
\No newline at end of file