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

Function getClient

packages/core/src/currentScopes.ts:145–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 * Get the currently active client.
144 */
145export function getClient<C extends Client>(): C | undefined {
146 return getCurrentScope().getClient<C>();
147}
148
149/**
150 * Get a trace context for the given scope.

Callers 15

index.test.tsFile · 0.90
setupSrvxTracingChannelsFunction · 0.90
captureErrorHookFunction · 0.90
wrapRequestHandlerFunction · 0.90
errorHandleDataFunctionFunction · 0.90
handleNavigationFunction · 0.90
cleanupNavigationSpanFunction · 0.90
getFastifyIntegrationFunction · 0.90
getRecordingOptionsFunction · 0.90
wrapRequestFunctionFunction · 0.90
fillGrpcFunctionFunction · 0.90
setConnInfoAttributesFunction · 0.90

Calls 2

getCurrentScopeFunction · 0.70
getClientMethod · 0.45

Tested by

no test coverage detected