telemetry
The tracked changes tagged telemetry, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.332
-
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.
-
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.
-
Added an OpenTelemetry assistant_response event for text sent through SendUserMessage or Cowork's message tool when response logging is on.
-
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
-
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
-
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
-
Prevents PDF inlineData and telemetry buffer memory retention.
Claude Code v2.1.328
-
/status and claude doctor show a notice when an OpenTelemetry exporter has no endpoint and its data would likely be lost.
-
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
-
Added automatically refreshed authentication headers for OpenTelemetry HTTP exporters.
Claude Code v2.1.327
-
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
-
Cowork cloud sessions hold an organization's OpenTelemetry export until the first turn, so claude_code.session.count can fall.
-
OTEL_RESOURCE_INCLUDE_HOST adds host.name and host.id to OpenTelemetry resource attributes; it is off by default.
-
PreToolUse hooks in managed settings now produce an OpenTelemetry tool_decision event and a permission_denials entry when they refuse a direct tool call.
-
[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
-
Fixed Remote Control notifications not showing what Claude asks permission for when DISABLE_TELEMETRY or DO_NOT_TRACK is set.
-
Fixed background sessions ignoring DISABLE_ERROR_REPORTING set only in the shell when the background service started without it.
Claude Code v2.1.321
-
OpenTelemetry vcs.* repository attributes are no longer missing from Claude Desktop sessions that start on a pre-started process.
-
NotebookEdit no longer reports success to hooks and telemetry when the edit failed.
-
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
-
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.
-
Fixed detailed beta tracing not presenting CLAUDE_CODE_CLIENT_CERT to collectors that require a client certificate.
-
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
-
Incomplete response output is preserved in failed inference traces.
-
Remote plugin bundle URLs are kept out of diagnostics.
-
Trace completion records and payload UTF-8 are validated during replay.
-
Additional context counts, sizes, and truncation metrics are recorded.
-
Keep remote plugin bundle diagnostics free of bundle URLs.
Gemini CLI Release v0.67.0
-
Duplicate history and double telemetry are prevented in the confirm_action flow.
Codex 0.166.0
-
Tagged exec_command telemetry with the configured shell snapshot mode.
-
Recorded reasons for embedded TUI starts.
-
Added OpenTelemetry requirement types to the app-server protocol.
-
Supported managed OpenTelemetry configuration requirements.
-
Redacted OTEL exporter headers in app-server config responses.
Claude Code v2.1.312
-
Claude Code no longer sends the claude_code.safety_event OpenTelemetry event.
-
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.
-
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
-
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
-
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
-
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.
-
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
-
Adds support for custom OTLP headers in telemetry configuration.
Claude Code v2.1.304
-
Fixed Remote Control failing to start from Claude Desktop when DISABLE_TELEMETRY or DO_NOT_TRACK is set on a paid plan.
-
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
-
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
-
Added OpenTelemetry tracing guidance to the claude-api skill, including setting up trace destinations with the ant CLI.
-
Added classifier_verdict and permission_mode attributes to OpenTelemetry tool_decision events to distinguish auto mode classifier decisions from permission rules.
-
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
-
Added cache_creation_5m_tokens and cache_creation_1h_tokens to the OpenTelemetry api_request event, splitting cache writes by lifetime.
-
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.
-
OpenTelemetry tool_result events now include git_commit_id after git commit -q in repositories using reftable ref storage.
-
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.
-
claude daemon stop now prints output and stops listing sessions as running when telemetry is turned off.
Claude Code v2.1.299
-
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
-
Custom OTLP headers can now be set in the telemetry configuration.
Claude Code v2.1.296
-
Fixed OpenTelemetry tool_result events missing git_commit_id after git commit -q or git -C <dir> commit.
Claude Code v2.1.295
-
Added a request-id header to successful gateway inference responses so telemetry request_id matches the gateway audit log.
-
Fixed the claude_code.auth OpenTelemetry login event not being emitted on gateway sign-in.
-
Changed Artifact tool permission prompts with telemetry disabled to match the five questions other installs get.
Claude Code v2.1.293
-
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
-
Fixed background components sending telemetry and feature-flag requests to Anthropic behind a gateway without forced gateway login.
MCP Python SDK v2.3.0
-
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
-
Fixed OpenTelemetry claude_code.tool.blocked_on_user spans reporting unknown source or decision in -p and SDK sessions and for PreToolUse hook approvals.
-
Fixed unanswered permission asks in -p or on an interrupted turn emitting no tool_decision event.
Claude Code v2.1.287
-
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
-
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
-
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.
-
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
-
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_*.
-
Added a startup notice plus /status and claude doctor entries listing telemetry variables in project settings files that were ignored or turned telemetry off.
-
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.