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

Method setClient

packages/core/src/scope.ts:222–224  ·  view source on GitHub ↗

* Update the client assigned to this scope. * Note that not every scope will have a client assigned - isolation scopes & the global scope will generally not have a client, * as well as manually created scopes.

(client: Client | undefined)

Source from the content-addressed store, hash-verified

220 * as well as manually created scopes.
221 */
222 public setClient(client: Client | undefined): void {
223 this._client = client;
224 }
225
226 /**
227 * Set the ID of the last captured error event.

Calls

no outgoing calls

Tested by 8

simulateRequestFunction · 0.64
collectMetricsFunction · 0.64
resetGlobalsFunction · 0.64
resetGlobalsFunction · 0.64
getTestClientFunction · 0.64
resetGlobalsFunction · 0.64
resetGlobalsFunction · 0.64
resetGlobalsFunction · 0.64