{"name":"OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE","slug":"otel-exporter-otlp-metrics-temporality-preference","family":"env","title":"Environment variables","noun":"environment variable","description":"Set OTEL_METRICS_EXPORTER=prometheus and child sessions report through the runner, giving one scrape target per machine.","description_source":"entry","described_by":{"version":"2.1.224","anchor":"runner-collects-metrics-from-its-child-sessions-and-re-expor"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":{"version":"2.1.224","released_at":"2026-08-07 01:36:32","spans":1}},"aliases":[],"entries":[{"version":"2.1.232","anchor":"more-opentelemetry-environment-variables-passed-through","heading":"More OpenTelemetry environment variables passed through","line":"You can now set standard OpenTelemetry compression and per-signal protocol variables and have them respected.","released_at":"2026-08-13 21:30:53","reason":"found in this entry's text"},{"version":"2.1.224","anchor":"runner-collects-metrics-from-its-child-sessions-and-re-expor","heading":"Runner collects metrics from its child sessions and re-exports them","line":"Set OTEL_METRICS_EXPORTER=prometheus and child sessions report through the runner, giving one scrape target per machine.","released_at":"2026-08-07 01:36:32","reason":"found in this entry's text"}],"entries_total":2,"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}],"docs_total":2,"gates":[],"related":[{"name":"OTEL_EXPORTER_OTLP_METRICS_ENDPOINT","slug":"otel-exporter-otlp-metrics-endpoint","description":"In remote sessions, usage metrics can now go to the session's own metrics address, signed with `CLAUDE_CODE_SESSION_ACCESS_TOKEN`"},{"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"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/otel-exporter-otlp-metrics-temporality-preference","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}