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

Function recordDaemonLifecycleMetric

src/utils/sentry.ts:518–532  ·  view source on GitHub ↗
(event: SentryDaemonLifecycleEvent)

Source from the content-addressed store, hash-verified

516}
517
518export function recordDaemonLifecycleMetric(event: SentryDaemonLifecycleEvent): void {
519 if (!shouldEmitMetrics()) {
520 return;
521 }
522
523 try {
524 Sentry.metrics.count(`xcodebuildmcp.daemon.${event}.count`, 1, {
525 attributes: {
526 runtime: 'daemon',
527 },
528 });
529 } catch {
530 // Metrics are best effort and must never affect runtime behavior.
531 }
532}
533
534export function recordBootstrapDurationMetric(
535 runtime: SentryRuntimeMode,

Callers 4

mainFunction · 0.90
shutdownFunction · 0.90
handleCrashFunction · 0.90
daemon.tsFile · 0.90

Calls 1

shouldEmitMetricsFunction · 0.85

Tested by

no test coverage detected