All areas Feed Weekly digests

telemetry

The tracked changes tagged telemetry, newest release first. Every sentence is an item's summary.

77 items from 35 releases, 7 breaking Sources: Claude Code, MCP Python SDK, Codex, Gemini CLI Last change:

Goes with

Changes

Claude Code v2.1.332

  1. breaking Breaking

    The default OpenTelemetry service.name of desktop Code tab sessions is now claude-code-desktop; update filters or set OTEL_SERVICE_NAME to keep the old name.

  2. breaking Breaking

    OpenTelemetry tool_input now shows only the length of text sent through SendUserMessage or Cowork's message tool unless OTEL_LOG_ASSISTANT_RESPONSES=1 is set.

  3. feature

    Added an OpenTelemetry assistant_response event for text sent through SendUserMessage or Cowork's message tool when response logging is on.

  4. fix

    Fixed OpenTelemetry reporting a failed mcp_server_connection event at each start for a built-in server not turned on for the account.

Claude Code v2.1.331

  1. feature

    Added gen_ai.usage.*, gen_ai.response.model and gen_ai.operation.name attributes to claude_code.llm_request trace spans; gen_ai.usage.input_tokens includes prompt cache tokens.

Claude Code v2.1.329

  1. feature

    Code Mode can be enabled while OpenTelemetry events and metrics are on, with each tool call from the code sending its events; tracing still keeps it off.

Gemini CLI Release v0.69.0

  1. fix

    Prevents PDF inlineData and telemetry buffer memory retention.

Claude Code v2.1.328

  1. feature

    /status and claude doctor show a notice when an OpenTelemetry exporter has no endpoint and its data would likely be lost.

  2. fix

    A malformed OTEL_RESOURCE_ATTRIBUTES entry now drops only that entry, not the variable's other labels from metrics, events and spans.

Codex 0.170.0

  1. feature

    Added automatically refreshed authentication headers for OpenTelemetry HTTP exporters.

Claude Code v2.1.327

  1. breaking Breaking

    Changed Anthropic-hosted cloud sessions to ignore more of a repository's flag and plugin delivery settings; CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC now acts at most as DISABLE_TELEMETRY.

Claude Code v2.1.326

  1. breaking Breaking

    Cowork cloud sessions hold an organization's OpenTelemetry export until the first turn, so claude_code.session.count can fall.

  2. feature

    OTEL_RESOURCE_INCLUDE_HOST adds host.name and host.id to OpenTelemetry resource attributes; it is off by default.

  3. fix

    PreToolUse hooks in managed settings now produce an OpenTelemetry tool_decision event and a permission_denials entry when they refuse a direct tool call.

  4. other

    [VSCode] Extension error text in event listeners, views and activation is worded to stay out of the editor's error telemetry.

Claude Code v2.1.323

  1. fix

    Fixed Remote Control notifications not showing what Claude asks permission for when DISABLE_TELEMETRY or DO_NOT_TRACK is set.

  2. fix

    Fixed background sessions ignoring DISABLE_ERROR_REPORTING set only in the shell when the background service started without it.

Claude Code v2.1.321

  1. fix

    OpenTelemetry vcs.* repository attributes are no longer missing from Claude Desktop sessions that start on a pre-started process.

  2. fix

    NotebookEdit no longer reports success to hooks and telemetry when the edit failed.

  3. other

    OpenTelemetry hook events in non-interactive sessions leave two built-in hooks out of num_hooks and num_success after Bash and PowerShell calls.

Claude Code v2.1.319

  1. feature

    Added the CLAUDE_CODE_DISABLE_FEATURE_FLAGS environment variable to stop feature-flag fetching without disabling telemetry; all flags then use their built-in defaults.

  2. fix

    Fixed detailed beta tracing not presenting CLAUDE_CODE_CLIENT_CERT to collectors that require a client certificate.

  3. fix

    Fixed the OpenTelemetry claude_code.session.count metric counting Agent SDK prewarm() processes that were never claimed; a pre-started process now counts once, when claimed.

Codex 0.167.0

  1. fix

    Incomplete response output is preserved in failed inference traces.

  2. fix

    Remote plugin bundle URLs are kept out of diagnostics.

  3. other

    Trace completion records and payload UTF-8 are validated during replay.

  4. other

    Additional context counts, sizes, and truncation metrics are recorded.

  5. other

    Keep remote plugin bundle diagnostics free of bundle URLs.

+3 more
  1. feature

    Trace-safe diagnostics are added for Noise relay request progress.

  2. other

    The SSE delta log option can disable successful SSE delta logs.

  3. other

    Bazel CI snapshot handling and OTLP test cleanup are tightened.

Gemini CLI Release v0.67.0

  1. fix

    Duplicate history and double telemetry are prevented in the confirm_action flow.

Codex 0.166.0

  1. other

    Tagged exec_command telemetry with the configured shell snapshot mode.

  2. other

    Recorded reasons for embedded TUI starts.

  3. other

    Added OpenTelemetry requirement types to the app-server protocol.

  4. other

    Supported managed OpenTelemetry configuration requirements.

  5. other

    Redacted OTEL exporter headers in app-server config responses.

+3 more
  1. fix

    Fixed trace exporter activation after account switches.

  2. other

    Supported managed OpenTelemetry metadata and PEM client identities.

  3. other

    Added optional process metrics sampling for code-mode hosts.

Claude Code v2.1.312

  1. breaking Breaking

    Claude Code no longer sends the claude_code.safety_event OpenTelemetry event.

  2. fix

    Fixed the spinner, OpenTelemetry effort values and transcripts naming a newly picked effort level during a task before the model applied it; they now show the level in force.

  3. other

    OpenTelemetry mcp_server.name now reports the real name of fixed-URL remote MCP servers declared by plugins from the official Anthropic marketplace, instead of custom.

Claude Code v2.1.311

  1. other

    VSCode: Changed the extension to start sessions with DISABLE_TELEMETRY set while VS Code's telemetry setting is off, so they send no usage metrics or error reports and fetch no feature flags.

Claude Code v2.1.310

  1. feature

    Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too.

Claude Code v2.1.307

  1. feature

    Added the claude_code.safety_event OpenTelemetry event, emitted for each tool call that a permission rule, auto mode, safety check, hook, or the sandbox stopped, prompted, or sent back.

  2. fix

    Fixed telemetry from Claude Desktop sessions behind a Claude apps gateway being rejected when OTEL_EXPORTER_OTLP_HEADERS is set.

Gemini CLI Release v0.65.0

  1. feature

    Adds support for custom OTLP headers in telemetry configuration.

Claude Code v2.1.304

  1. fix

    Fixed Remote Control failing to start from Claude Desktop when DISABLE_TELEMETRY or DO_NOT_TRACK is set on a paid plan.

  2. fix

    Fixed OpenTelemetry settings delivered through server-managed settings being ignored for the whole session after signing in during first-run setup or the first start after /logout.

Claude Code v2.1.302

  1. fix

    Fixed classifier_category missing from OpenTelemetry tool_decision events for most auto mode classifier blocks, and new tool_decision attributes pushing out tool_use_id, tool_source and tool_parameters when OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT is low.

Claude Code v2.1.301

  1. docs

    Added OpenTelemetry tracing guidance to the claude-api skill, including setting up trace destinations with the ant CLI.

  2. feature

    Added classifier_verdict and permission_mode attributes to OpenTelemetry tool_decision events to distinguish auto mode classifier decisions from permission rules.

  3. feature

    Added classifier_category to OpenTelemetry tool_decision events, naming the built-in rule a classifier block matched, when OTEL_LOG_TOOL_DETAILS=1.

Claude Code v2.1.300

  1. feature

    Added cache_creation_5m_tokens and cache_creation_1h_tokens to the OpenTelemetry api_request event, splitting cache writes by lifetime.

  2. feature

    Added OpenTelemetry GenAI semantic-convention attributes to trace spans, including gen_ai.provider.name, gen_ai.conversation.id, gen_ai.tool.name and error.type.

  3. fix

    OpenTelemetry tool_result events now include git_commit_id after git commit -q in repositories using reftable ref storage.

  4. fix

    A prompt that a mod's prompt.submit hook rewrote or dropped is no longer recorded as typed in the user_prompt event, interaction span, or session title requests.

  5. fix

    claude daemon stop now prints output and stops listing sessions as running when telemetry is turned off.

Claude Code v2.1.299

  1. fix

    Fixed the plugin_loaded telemetry event reporting has_hooks as false for plugins whose hooks are a hooks module, including built-in plugins.

Gemini CLI Release v0.65.0-preview.0

  1. feature

    Custom OTLP headers can now be set in the telemetry configuration.

Claude Code v2.1.296

  1. fix

    Fixed OpenTelemetry tool_result events missing git_commit_id after git commit -q or git -C <dir> commit.

Claude Code v2.1.295

  1. feature

    Added a request-id header to successful gateway inference responses so telemetry request_id matches the gateway audit log.

  2. fix

    Fixed the claude_code.auth OpenTelemetry login event not being emitted on gateway sign-in.

  3. other

    Changed Artifact tool permission prompts with telemetry disabled to match the five questions other installs get.

Claude Code v2.1.293

  1. other

    Changed OpenTelemetry claude_code.at_mention logging to emit at most 100 agent and 100 MCP-resource events each time a prompt is read.

Claude Code v2.1.290

  1. fix

    Fixed background components sending telemetry and feature-flag requests to Anthropic behind a gateway without forced gateway login.

MCP Python SDK v2.3.0

  1. fix

    Client OpenTelemetry spans now record JSON-RPC error responses, and with mode="auto" a server lacking server/discover produces one ERROR span for the probe.

Claude Code v2.1.288

  1. fix

    Fixed OpenTelemetry claude_code.tool.blocked_on_user spans reporting unknown source or decision in -p and SDK sessions and for PreToolUse hook approvals.

  2. fix

    Fixed unanswered permission asks in -p or on an interrupted turn emitting no tool_decision event.

Claude Code v2.1.287

  1. feature Breaking

    Added prompt_text to the OpenTelemetry user_prompt event as a copy of prompt; it must be dropped or masked wherever prompt is.

Claude Code v2.1.284

  1. feature

    Added auth: { google: {} } for Claude apps gateway telemetry.forward_to destinations to export telemetry to Google Cloud's OTLP endpoint using the gateway's credentials.

Claude Code v2.1.283

  1. feature

    Added x-claude-code-prompt-id to gateway hint headers, opt-in via CLAUDE_CODE_GATEWAY_HINT_HEADERS=1, so gateways can group requests serving one prompt.

  2. feature

    MCP tool, WebFetch and WebSearch outputs are added to the tool.output OpenTelemetry span event when OTEL_LOG_TOOL_CONTENT=1.

Claude Code v2.1.282

  1. breaking Breaking

    Changed project and local settings to ignore OpenTelemetry variables that enable export, set its endpoint or capture content, such as CLAUDE_CODE_ENABLE_TELEMETRY and OTEL_LOG_*.

  2. feature

    Added a startup notice plus /status and claude doctor entries listing telemetry variables in project settings files that were ignored or turned telemetry off.

  3. other

    Changed auto mode to use the server-side classifier by default on direct Anthropic API connections when telemetry is off, with CLAUDE_CODE_AUTO_MODE_SERVER=0 to opt out.