getCurrentSentryReactTransaction.tsx 225 B

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