(v: string | undefined)
| 90 | // (and thus a single Grafana $env filter spans Sim + Go). Returns undefined when |
| 91 | // unset (local dev) so the OTEL_/NODE_ENV fallbacks still apply. |
| 92 | function deploymentEnvFromAppConfig(v: string | undefined): string | undefined { |
| 93 | if (!v) return undefined |
| 94 | return v === 'production' ? 'prod' : v |
| 95 | } |
| 96 | |
| 97 | // Sampling ratio from env (mirrors Go's `samplerFromEnv`); fallback |
| 98 | // is 100% everywhere. Retention caps cost, not sampling. |
no outgoing calls
no test coverage detected