UNPKG

435 BTypeScriptView Raw
1import type { Span } from '@sentry/types';
2/**
3 * Returns the root span of a given span.
4 *
5 * As long as we use `Transaction`s internally, the returned root span
6 * will be a `Transaction` but be aware that this might change in the future.
7 *
8 * If the given span has no root span or transaction, `undefined` is returned.
9 */
10export declare function getRootSpan(span: Span): Span | undefined;
11//# sourceMappingURL=getRootSpan.d.ts.map
\No newline at end of file