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

Function isUserPromptLoggingEnabled

src/utils/telemetry/events.ts:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11let hasWarnedNoEventLogger = false
12
13function isUserPromptLoggingEnabled() {
14 return isEnvTruthy(process.env.OTEL_LOG_USER_PROMPTS)
15}
16
17export function redactIfDisabled(content: string): string {
18 return isUserPromptLoggingEnabled() ? content : '<REDACTED>'

Callers 1

redactIfDisabledFunction · 0.85

Calls 1

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected