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

Function setCurrentClient

packages/core/src/sdk.ts:44–46  ·  view source on GitHub ↗
(client: Client)

Source from the content-addressed store, hash-verified

42 * Make the given client the current client.
43 */
44export function setCurrentClient(client: Client): void {
45 getCurrentScope().setClient(client);
46}

Calls 2

getCurrentScopeFunction · 0.90
setClientMethod · 0.80

Tested by 5

setupClientFunction · 0.72
setupWithSendDefaultPiiFunction · 0.72
setupWithDataCollectionFunction · 0.72
setupClientFunction · 0.72
testHarnessFunction · 0.68