UNPKG

@sentry/core

Version:
13 lines (10 loc) 428 B
import { getCurrentHub } from '../hub.js'; export { TRACEPARENT_REGEXP, extractTraceparentData, stripUrlQueryAndFragment } from '@sentry/utils'; /** Grabs active transaction off scope, if any */ function getActiveTransaction(maybeHub) { const hub = maybeHub || getCurrentHub(); const scope = hub.getScope(); return scope && (scope.getTransaction() ); } export { getActiveTransaction }; //# sourceMappingURL=utils.js.map