Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/sentry_deno/packages/hub/src/hub.ts>getCurrentHub

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
function getCurrentHub
import { getCurrentHub } from "https://deno.land/x/sentry_deno@v0.2.2/packages/hub/src/hub.ts";

Returns the default hub instance.

If a hub is already registered in the global carrier but this module contains a more recent version, it replaces the registered version. Otherwise, the currently registered hub will be returned.