Files
sentinel/static/app/utils/getCurrentSentryReactTransaction.tsx
2024-02-15 17:01:50 +00:00

9 lines
225 B
TypeScript

import * as Sentry from '@sentry/react';
/**
* Gets the current transaction, if one exists.
*/
export default function getCurrentSentryReactTransaction() {
return Sentry?.getCurrentHub()?.getScope()?.getTransaction();
}