{"name":"OTEL_EXPORTER_OTLP_METRICS_ENDPOINT","slug":"otel-exporter-otlp-metrics-endpoint","family":"env","title":"Environment variables","noun":"environment variable","description":"In remote sessions, usage metrics can now go to the session's own metrics address, signed with `CLAUDE_CODE_SESSION_ACCESS_TOKEN`","description_source":"entry","described_by":{"version":"2.1.283","anchor":"in-remote-sessions-otlp-metrics-can-go-through-the-session"},"presence":{"first_seen":"2.1.160","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":129,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.283","anchor":"in-remote-sessions-otlp-metrics-can-go-through-the-session","heading":"Metrics from cloud sessions can be sent through the session's own connection","line":"In remote sessions, usage metrics can now go to the session's own metrics address, signed with `CLAUDE_CODE_SESSION_ACCESS_TOKEN`","released_at":"2026-09-25 18:46:11","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"claude-apps-gateway-config","title":"Claude apps gateway configuration","documented":false},{"source":"claude-code","path":"monitoring-usage","title":"Monitoring","documented":false},{"source":"claude-docs","path":"third-party\/claude-desktop\/telemetry","title":"Telemetry and egress","documented":false}],"docs_total":3,"gates":[],"related":[{"name":"OTEL_EXPORTER_OTLP_METRICS_HEADERS","slug":"otel-exporter-otlp-metrics-headers","description":"Comma-separated `key=value` headers for OTLP metric exports; the bundled exporters merge it over `OTEL_EXPORTER_OTLP_HEADERS`, its values winning on a clash. While it is set, Claude Code skips some of its built-in routes that attach its own `Authorization: Bearer` token to metric exports, including the remote session ingress collector."},{"name":"OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","slug":"otel-exporter-otlp-metrics-protocol","description":"When metrics are sent over OpenTelemetry by gRPC or HTTP protobuf, Claude Code now prepares an extra resource before creating the exporter"},{"name":"OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE","slug":"otel-exporter-otlp-metrics-temporality-preference","description":"Set OTEL_METRICS_EXPORTER=prometheus and child sessions report through the runner, giving one scrape target per machine."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/otel-exporter-otlp-metrics-endpoint","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}