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