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

Function flushSentry

src/utils/sentry.ts:386–397  ·  view source on GitHub ↗
(timeoutMs = 2000)

Source from the content-addressed store, hash-verified

384}
385
386export async function flushSentry(timeoutMs = 2000): Promise<FlushSentryOutcome> {
387 if (!initialized || isSentryDisabled() || isTestEnv()) {
388 return 'skipped';
389 }
390
391 try {
392 const flushed = await Sentry.flush(timeoutMs);
393 return flushed ? 'flushed' : 'timed_out';
394 } catch {
395 return 'failed';
396 }
397}
398
399export function captureMcpShutdownSummary(summary: McpShutdownSummaryEvent): void {
400 if (!initialized || isSentryDisabled() || isTestEnv() || isSentryCaptureSealed()) {

Callers 1

runMcpShutdownFunction · 0.90

Calls 3

isSentryDisabledFunction · 0.85
isTestEnvFunction · 0.70
flushMethod · 0.65

Tested by

no test coverage detected