Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.d.ts>getActiveTransaction

The Official Sentry Deno SDK
Latest
function getActiveTransaction
Deprecated
Deprecated

You should not rely on the transaction, but just use startSpan() APIs instead.

import { getActiveTransaction } from "https://deno.land/x/sentry@7.120.0/index.d.ts";

Grabs active transaction off scope.

Type Parameters

T extends Transaction

Parameters

optional
maybeHub: Hub

Returns

T | undefined