MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isSinkKilled

Function isSinkKilled

src/services/analytics/sinkKillswitch.ts:18–25  ·  view source on GitHub ↗
(sink: SinkName)

Source from the content-addressed store, hash-verified

16 * Call at per-event dispatch sites instead.
17 */
18export function isSinkKilled(sink: SinkName): boolean {
19 const config = getDynamicConfig_CACHED_MAY_BE_STALE<
20 Partial<Record<SinkName, boolean>>
21 >(SINK_KILLSWITCH_CONFIG_NAME, {})
22 // getFeatureValue_CACHED_MAY_BE_STALE guards on `!== undefined`, so a
23 // cached JSON null leaks through instead of falling back to {}.
24 return config?.[sink] === true
25}
26

Callers 4

shouldTrackDatadogFunction · 0.85
logEventTo1PFunction · 0.85
initialize1PEventLoggingFunction · 0.85

Tested by

no test coverage detected