mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
9 lines
225 B
TypeScript
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();
|
|
}
|