MCPcopy Index your code
hub / github.com/simstudioai/sim / deploymentEnvFromAppConfig

Function deploymentEnvFromAppConfig

apps/sim/instrumentation-node.ts:92–95  ·  view source on GitHub ↗
(v: string | undefined)

Source from the content-addressed store, hash-verified

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.
92function 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.

Callers 1

initializeOpenTelemetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected