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

Function setUser

packages/core/src/exports.ts:157–159  ·  view source on GitHub ↗
(user: User | null)

Source from the content-addressed store, hash-verified

155 * @param user User context object to be set in the current context. Pass `null` to unset the user.
156 */
157export function setUser(user: User | null): void {
158 getIsolationScope().setUser(user);
159}
160
161/**
162 * Sets the conversation ID for the current isolation scope.

Callers 1

deno-serve.test.tsFile · 0.85

Calls 2

getIsolationScopeFunction · 0.90
setUserMethod · 0.80

Tested by

no test coverage detected