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

x/sentry_deno/packages/hub/src/exports.ts>setContext

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
function setContext
import { setContext } from "https://deno.land/x/sentry_deno@v0.2.2/packages/hub/src/exports.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"]>