(value: string)
| 463 | type DaemonGaugeMetricName = 'inflight_requests' | 'active_sessions' | 'idle_timeout_ms'; |
| 464 | |
| 465 | function 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 | |
| 473 | function shouldEmitMetrics(): boolean { |
| 474 | return initialized && !isSentryDisabled() && !isTestEnv() && !isSentryCaptureSealed(); |
no outgoing calls
no test coverage detected