MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / setContext

Function setContext

packages/core/src/exports.ts:66–68  ·  view source on GitHub ↗
(name: string, context: { [key: string]: unknown } | null)

Source from the content-addressed store, hash-verified

64 * @param context Any kind of data. This data will be normalized.
65 */
66export function setContext(name: string, context: { [key: string]: unknown } | null): void {
67 getIsolationScope().setContext(name, context);
68}
69
70/**
71 * Set an object that will be merged sent as extra data with the event.

Callers 3

sendReplayFunction · 0.90
initFunction · 0.50

Calls 2

getIsolationScopeFunction · 0.90
setContextMethod · 0.80

Tested by

no test coverage detected