MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / enrichSentryContext

Function enrichSentryContext

src/utils/sentry.ts:343–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

341}
342
343export function enrichSentryContext(): void {
344 if (!initialized || enriched || isSentryDisabled() || isTestEnv() || isSentryCaptureSealed()) {
345 return;
346 }
347
348 enriched = true;
349
350 if (pendingRuntimeContext) {
351 applyRuntimeContext(pendingRuntimeContext);
352 emitSentrySelfTest(pendingRuntimeContext.mode);
353 return;
354 }
355
356 emitSentrySelfTest(undefined);
357}
358
359export async function flushAndCloseSentry(timeoutMs = 2000): Promise<void> {
360 if (!initialized || isSentryDisabled() || isTestEnv()) {

Callers 1

startMcpServerFunction · 0.90

Calls 5

isSentryCaptureSealedFunction · 0.90
isSentryDisabledFunction · 0.85
applyRuntimeContextFunction · 0.85
emitSentrySelfTestFunction · 0.85
isTestEnvFunction · 0.70

Tested by

no test coverage detected