(event: SentryDaemonLifecycleEvent)
| 516 | } |
| 517 | |
| 518 | export 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 | |
| 534 | export function recordBootstrapDurationMetric( |
| 535 | runtime: SentryRuntimeMode, |
no test coverage detected