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

Function sanitizeTagValue

src/utils/sentry.ts:465–471  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

463type DaemonGaugeMetricName = 'inflight_requests' | 'active_sessions' | 'idle_timeout_ms';
464
465function sanitizeTagValue(value: string): string {
466 const trimmed = value.trim().toLowerCase();
467 if (!trimmed) {
468 return 'unknown';
469 }
470 return trimmed.replace(/[^a-z0-9._-]/g, '_').slice(0, 64);
471}
472
473function shouldEmitMetrics(): boolean {
474 return initialized && !isSentryDisabled() && !isTestEnv() && !isSentryCaptureSealed();

Callers 5

recordMcpLifecycleMetricFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected