Question 1 · choose 1
A company exports Claude Code telemetry to its collector. Managed settings contain:{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel.internal.example.com:4317",
"OTEL_EXPORTER_OTLP_HEADERS": "Authorization=Bearer <collector-token>"
}
}Each developer's onboarding script writes OTEL_LOGS_EXPORTER and OTEL_METRICS_EXPORTER as "otlp" into ~/.claude/settings.json. A month of runaway sessions in one repository never appeared in the event dashboards; that repository's committed .claude/settings.json sets OTEL_LOGS_EXPORTER to "none". Which change would have kept those sessions visible?
- AAdd per-signal endpoint variables to managed settings, so that each signal is pinned to the company collector
- BNothing more; the managed endpoint and headers already remove every conflicting telemetry variable at startup
- CSet OTEL_LOGS_EXPORTER and OTEL_METRICS_EXPORTER in managed settings as well
- DCommit both exporter selectors as "otlp" to every repository's .claude/settings.json
Show the answer and why
AAdd per-signal endpoint variables to managed settings, so that each signal is pinned to the company collector
Incorrect
A managed OTEL_EXPORTER_OTLP_ENDPOINT already removes developer-set per-signal endpoints; the gap is the exporter selector.
BNothing more; the managed endpoint and headers already remove every conflicting telemetry variable at startup
Incorrect
That removal covers endpoints and credentials; exporter selectors follow normal per-key precedence.
CSet OTEL_LOGS_EXPORTER and OTEL_METRICS_EXPORTER in managed settings as well
Correct
A developer or repository setting can still disable a signal unless managed settings set the selector too.
DCommit both exporter selectors as "otlp" to every repository's .claude/settings.json
Incorrect
Claude Code ignores the exporter variables in a repository's settings files, apart from a selector set to "none".
When managed settings set OTEL_EXPORTER_OTLP_ENDPOINT or the OTLP credentials, Claude Code removes conflicting developer-set endpoint and credential variables. Exporter selectors such as OTEL_LOGS_EXPORTER follow normal per-key precedence, so a developer's setting, or a repository that sets a selector to "none", can still turn a signal off. Set the selectors in managed settings too if they must stay locked.
Anthropic documentation