MCPcopy Create free account
hub / github.com/Noumena-Network/code / isEnhancedTelemetryEnabled

Function isEnhancedTelemetryEnabled

src/utils/telemetry/sessionTracing.ts:127–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 * Priority: env var override > ant build > GrowthBook gate
126 */
127export function isEnhancedTelemetryEnabled(): boolean {
128 if (feature('ENHANCED_TELEMETRY_BETA')) {
129 const env =
130 process.env.CLAUDE_CODE_ENHANCED_TELEMETRY_BETA ??
131 process.env.ENABLE_ENHANCED_TELEMETRY_BETA
132 if (isEnvTruthy(env)) {
133 return true
134 }
135 if (isEnvDefinedFalsy(env)) {
136 return false
137 }
138 return (
139 isInternalBuild() ||
140 getFeatureValue_CACHED_MAY_BE_STALE('enhanced_telemetry_beta', false)
141 )
142 }
143 return false
144}
145
146/**
147 * Check if any tracing is enabled (either standard enhanced telemetry OR beta tracing)

Callers 2

initializeTelemetryFunction · 0.85
isAnyTracingEnabledFunction · 0.85

Calls 4

isEnvTruthyFunction · 0.90
isEnvDefinedFalsyFunction · 0.85
isInternalBuildFunction · 0.85

Tested by

no test coverage detected