Answer: Set the OTLP endpoint with `OTEL_EXPORTER_OTLP_ENDPOINT` (or per-signal variables like `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT`), and configure authentication with `OTEL_EXPORTER_OTLP_HEADERS` (or per-signal headers variables, which merge with the general headers). Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/configure-otlp-endpoint Revision: 3 Digest: sha256:899849d44d527d66 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:45Z Last changed: 2026-11-16T12:10:19Z (Headers example: — → Authorization=Bearer token) Last verified: 2026-11-20T12:22:20Z Next check: 2026-11-21T12:22:20Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of OTLP endpoint variable | OTEL_EXPORTER_OTLP_ENDPOINT | [1] | 2026-11-20 Endpoint example | http://localhost:4317 | [1] | 2026-11-20 Authentication headers variable | OTEL_EXPORTER_OTLP_HEADERS | [1] | 2026-11-20 Headers example | Authorization=Bearer token | [1] | 2026-11-20 Per-signal headers merge behavior | OTEL_EXPORTER_OTLP_METRICS_HEADERS | [1] | 2026-11-20 Telemetry enable variable | CLAUDE_CODE_ENABLE_TELEMETRY | [1] | 2026-11-20 Sources: [1] Anthropic. "Monitoring". https://code.claude.com/docs/en/monitoring-usage.md Role: primary. Accessed: 2026-11-20T12:22:20Z Quote: "| `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint for all signals |" (Supports: OTLP endpoint variable) Quote: "| `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint for all signals | `http://localhost:4317` |" (Supports: Endpoint example) Quote: "| `OTEL_EXPORTER_OTLP_HEADERS` | Authentication headers for OTLP | `Authorization=Bearer token` |" (Supports: Authentication headers variable, Headers example) Quote: "If you set a per-signal headers variable, such as `OTEL_EXPORTER_OTLP_METRICS_HEADERS`, Claude Code merges it with the generic `OTEL_EXPORTER_OTLP_HEADERS` for that signal." (Supports: Per-signal headers merge behavior) Quote: "| `CLAUDE_CODE_ENABLE_TELEMETRY` | Enables telemetry collection (required) | `1` |" (Supports: Telemetry enable variable) Published: 2026-11-20T02:52:06Z Snapshot SHA-256: 056e86720f4bca87cc4bc148f65e9e1dc42e00a76bb92d31156290cfaea220b6 (captured 2026-11-20T12:22:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:22:20Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:22:20Z Last attempt: 2026-11-20T12:22:20Z Notes and limitations: Extracted automatically from a single official source (section "Common configuration variables"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/configure-proxies-gateways How do I configure a proxy or gateway for Claude Code in an enterprise deployment? https://latestn.com/tool/claude-code/admin-and-enterprise/configure-proxy-server How do I configure a proxy server for Claude Code in an enterprise environment? https://latestn.com/tool/claude-code/admin-and-enterprise/configure-server-managed-settings How do I configure server-managed settings for Claude Code in the claude.ai console? https://latestn.com/tool/claude-code/admin-and-enterprise/combine-managed-sources How does Claude Code combine multiple managed settings sources, and which keys are read from every admin source? https://latestn.com/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth How do I configure a proxy authorization for egress in Claude Code self-hosted environments? https://latestn.com/tool/claude-code/admin-and-enterprise/configure-llm-gateway How do I configure Claude Code to use my organization's LLM gateway? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-16T12:10:19Z | changed | Headers example: — → Authorization=Bearer token | [1] 2026-11-16T12:10:19Z | changed | Endpoint example: — → http://localhost:4317 | [1] 2026-11-16T12:10:19Z | changed | Logs endpoint override: OTEL_EXPORTER_OTLP_LOGS_ENDPOINT → — | [1] 2026-11-16T12:10:19Z | changed | Metrics endpoint override: OTEL_EXPORTER_OTLP_METRICS_ENDPOINT → — | [1] 2026-11-16T12:10:19Z | changed | Authentication headers example: Authorization=Bearer token → — | [1] 2026-11-16T12:10:19Z | changed | OTLP endpoint example: http://localhost:4317 → — | [1] 2026-11-14T12:18:05Z | changed | Telemetry enable variable: — → CLAUDE_CODE_ENABLE_TELEMETRY | [1] 2026-11-14T12:18:05Z | changed | Per-signal headers merge behavior: — → OTEL_EXPORTER_OTLP_METRICS_HEADERS | [1] 2026-11-14T12:18:05Z | changed | Authentication headers example: — → Authorization=Bearer token | [1] 2026-11-14T12:18:05Z | changed | Authentication headers variable: — → OTEL_EXPORTER_OTLP_HEADERS | [1] 2026-11-14T12:18:05Z | changed | OTLP endpoint example: — → http://localhost:4317 | [1] 2026-11-14T12:18:05Z | changed | OTLP endpoint variable: — → OTEL_EXPORTER_OTLP_ENDPOINT | [1] 2026-11-14T12:18:05Z | changed | Enable telemetry: CLAUDE_CODE_ENABLE_TELEMETRY → — | [1] 2026-11-14T12:18:05Z | changed | Protocol: OTEL_EXPORTER_OTLP_PROTOCOL → — | [1] 2026-11-14T12:18:05Z | changed | Logs headers: OTEL_EXPORTER_OTLP_LOGS_HEADERS → — | [1] 2026-11-14T12:18:05Z | changed | Metrics headers: OTEL_EXPORTER_OTLP_METRICS_HEADERS → — | [1] 2026-11-14T12:18:05Z | changed | Authentication headers: OTEL_EXPORTER_OTLP_HEADERS → — | [1] 2026-11-14T12:18:05Z | changed | OTLP endpoint: OTEL_EXPORTER_OTLP_ENDPOINT → — | [1] 2026-11-13T03:04:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure the OTLP endpoint and authentication for Claude Code telemetry? Revision 3, last verified 2026-11-20T12:22:20Z. https://latestn.com/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint (accessed 2026-11-21T10:02:42Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_configure_otlp_endpoint_r3, title = {How do I configure the OTLP endpoint and authentication for Claude Code telemetry?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint}}, note = {Revision 3; digest sha256:899849d44d527d66; last verified 2026-11-20T12:22:20Z; accessed 2026-11-21T10:02:42Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint