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

Method getClient

packages/core/src/scope.ts:237–239  ·  view source on GitHub ↗

* Get the client assigned to this scope.

()

Source from the content-addressed store, hash-verified

235 * Get the client assigned to this scope.
236 */
237 public getClient<C extends Client>(): C | undefined {
238 return this._client as C | undefined;
239 }
240
241 /**
242 * Get the ID of the last captured error event.

Callers 15

sdkLoadedFunction · 0.45
UIProfiler.test.tsFile · 0.45
getProfilerIdFunction · 0.45
handleErrorMethod · 0.45
scope.test.tsFile · 0.45
captureFeedbackFunction · 0.45
getClientFunction · 0.45
scope.test.tsFile · 0.45
sdk.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 1

getProfilerIdFunction · 0.36