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

x/sentry/index.d.ts>withScope

The Official Sentry Deno SDK
Latest
function withScope
import { withScope } from "https://deno.land/x/sentry@8.37.1/index.d.ts";

Set the given scope as the active scope in the callback.

Parameters

scope: Scope$1 | undefined
callback: (scope: Scope$1) => T