{"version":"2.1.213","anchor":"host-otlp-telemetry-for-sdk-integrations","canonical_anchor":"host-otlp-telemetry-for-sdk-integrations","heading":"Host OTLP Telemetry for SDK Integrations","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.213\/e\/host-otlp-telemetry-for-sdk-integrations","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.213","markdown":"### Host OTLP Telemetry for SDK Integrations\n\n**What**\n\nSDK host integrations can now emit custom telemetry events into Claude Code's OTLP pipeline using a `host.*` namespace. The system includes rate limiting and deduplication of error messages to avoid log spam.\n\n**Details**\n\n- Events must follow the naming pattern `host.<lowercase.dotted.name>`\n- Attributes must use `snake_case` keys with string values\n- Payload is validated and rejected if it uses reserved namespaces (`claude_code.*`) or has invalid shapes\n- Rate cap: 240 tokens, refilling over time\n- Error categories: `bad_envelope`, `bad_event_name`, `bad_attributes_shape`, `too_many_attributes`, `bad_attribute_key`, `bad_attribute_value`, `payload_too_large`, `emit_failed`\n\n**Evidence**\n\nOTLP routing implementation (search for `\"host OTLP event dropped\"`, `\"host OTLP event route error\"`, `\"host OTLP event emit failed\"`)"}