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

x/sentry/index.d.ts>setContext

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

Sets context data with the given name.

Parameters

name: string

of the context

context: { [key: string]: any; } | null

Any kind of data. This data will be normalized.

Returns

ReturnType<Hub["setContext"]>