{"version":"2.1.326","anchor":"otel-host-resource-attributes-opt-in","canonical_anchor":"otel-host-resource-attributes-opt-in","heading":"Telemetry can now include the host name and host ID","tier":"use","area":"Telemetry","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/otel-host-resource-attributes-opt-in","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Telemetry can now include the host name and host ID\n\nSetting OTEL_RESOURCE_INCLUDE_HOST adds host.name and host.id to the OpenTelemetry data Claude Code sends, with some exceptions\n\n**Unclear.** The full list of situations where the host details are left out is not settled.\n\n**What**\n\nOpenTelemetry is the system some setups use to collect usage data from Claude Code. A new `OTEL_RESOURCE_INCLUDE_HOST` setting adds the machine's `host.name` and `host.id` to that data. Before, no host details were included.\n\nThe host details are not added in some cases, including when data goes to a console exporter (output printed to the terminal) and in remote sessions. Claude Code looks the details up in the background with a time limit based on `CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS`.\n\n**Why**\n\nIf you collect telemetry from many machines, you can now tell which machine each piece of data came from.\n\n- Area: Telemetry\n- Names: `OTEL_RESOURCE_INCLUDE_HOST`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}