Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · claude-code

Monitoring changed

monitoring-usage

Nearest release: v2.1.271, published an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+30added
Lines−27removed
From line 199 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits24to this page, all time

The whole hunk

from line 199, old and new numbered
/
lines
from line 199
199199| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
200200| `user_prompt` | Prompt text. Value is `<REDACTED>` unless the gate is set | `OTEL_LOG_USER_PROMPTS` |
201201| `user_prompt_length` | Prompt length in characters | |
202| `interaction.sequence` | 1-based counter of interactions in this session | |
202| `interaction.sequence` | 1-based counter of interactions, counted per Claude Code process rather than per session, as described for [`event.sequence`](#event-correlation-attributes) | |
203203| `parent.source` | How the span got its trace parent: `env` when it parented under an inbound `TRACEPARENT`, `none` when it started its own trace. Requires Claude Code v2.1.268 or later | |
204204| `interaction.duration_ms` | Wall-clock duration of the turn | |
205205 
from line 621
621621| Attribute | Description |
622622| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
623623| `prompt.id` | UUID v4 identifier linking all events produced while processing a single user prompt |
624| `event.sequence` | 0-based counter for ordering events, counted per Claude Code process rather than per session |
624625| `message.uuid` | UUID of the message as persisted in the session transcript, the `~/.claude/projects/*/*.jsonl` files. Present on `assistant_response`, and on `user_prompt` except for command dispatches, which can produce zero or many messages. On `assistant_response`, this is the response's final transcript entry, which the next turn's `parentUuid` chains from. Requires Claude Code v2.1.214 or later |
625626| `client_request_id` | Client-generated UUID sent as the `x-client-request-id` request header. Present on `api_request` and `api_error` on first-party API connections; absent on third-party provider backends and when the request was retried through the non-streaming fallback. Pairs a request with its response and remains available for failures such as timeouts that never produced a server `request_id`. Matches the same attribute on the `llm_request` trace span. Requires Claude Code v2.1.214 or later |
626627 
627628To trace all activity triggered by a single prompt, filter your events by a specific `prompt.id` value. This returns the user\_prompt event, any api\_request events, and any tool\_result events that occurred while processing that prompt.
628629 
630`event.sequence` starts at 0 each time a Claude Code process starts and counts up for the life of that process. It keeps counting across `/clear`, which assigns a new `session.id`. If you [resume a session without forking](/docs/en/how-claude-code-works#resume-or-fork-sessions), the session keeps its `session.id` but takes its `event.sequence` values from the process that resumed it, so within one session a later event can carry a lower value than an earlier one, or repeat one. To order a session's events, sort by `event.timestamp` and use `event.sequence` to order events that share a timestamp.
631 
629632For message-level reconstruction, each event class carries a key that matches a field in the session transcript. The transcript entry format is [internal to Claude Code](/docs/en/sessions#where-transcripts-are-stored) and changes between versions, so a pipeline that joins on these fields can break on any release; treat the joins as version-specific rather than a stable contract:
630633 
631634* `message.uuid` on `user_prompt` and `assistant_response`
from line 646
643646* All [standard attributes](#standard-attributes)
644647* `event.name`: `"user_prompt"`
645648* `event.timestamp`: ISO 8601 timestamp
646* `event.sequence`: monotonically increasing counter for ordering events within a session
649* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
647650* `prompt_length`: Length of the prompt
648651* `prompt`: Prompt content. Redacted by default. Set `OTEL_LOG_USER_PROMPTS=1` to include it
649652* `message.uuid`: UUID of the resulting user message, matching the persisted transcript entry. Absent on command dispatches, which can produce zero or many messages. Requires Claude Code v2.1.214 or later
from line 664
661664* All [standard attributes](#standard-attributes)
662665* `event.name`: `"assistant_response"`
663666* `event.timestamp`: ISO 8601 timestamp
664* `event.sequence`: monotonically increasing counter for ordering events within a session
667* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
665668* `response_length`: Length of the response text in characters
666669* `response`: Response text, truncated at the content limit (60 KB by default). Redacted to `<REDACTED>` by default. Set `OTEL_LOG_ASSISTANT_RESPONSES=1` to include it. When `OTEL_LOG_ASSISTANT_RESPONSES` is unset, `OTEL_LOG_USER_PROMPTS` controls it instead, so set `OTEL_LOG_ASSISTANT_RESPONSES=0` to keep responses redacted while prompt logging is on
667670* `model`: Model identifier (for example, "claude-sonnet-5")
from line 683
680683* All [standard attributes](#standard-attributes)
681684* `event.name`: `"tool_result"`
682685* `event.timestamp`: ISO 8601 timestamp
683* `event.sequence`: monotonically increasing counter for ordering events within a session
686* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
684687* `tool_name`: Name of the tool
685688* `tool_use_id`: Unique identifier for this tool invocation. Matches the `tool_use_id` passed to hooks, allowing correlation between OTel events and hook-captured data.
686689* `success`: `"true"` or `"false"`
from line 715
712715* All [standard attributes](#standard-attributes)
713716* `event.name`: `"api_request"`
714717* `event.timestamp`: ISO 8601 timestamp
715* `event.sequence`: monotonically increasing counter for ordering events within a session
718* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
716719* `model`: Model used (for example, "claude-sonnet-5")
717720* `cost_usd`: Estimated cost in USD
718721* `cost_usd_micros`: Estimated cost in millionths of a US dollar, emitted as an integer
from line 742
739742* All [standard attributes](#standard-attributes)
740743* `event.name`: `"api_error"`
741744* `event.timestamp`: ISO 8601 timestamp
742* `event.sequence`: monotonically increasing counter for ordering events within a session
745* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
743746* `model`: Model used (for example, "claude-sonnet-5")
744747* `error`: Error message
745748* `status_code`: HTTP status code as a number. Absent for non-HTTP errors such as connection failures.
from line 766
763766* All [standard attributes](#standard-attributes)
764767* `event.name`: `"api_refusal"`
765768* `event.timestamp`: ISO 8601 timestamp
766* `event.sequence`: monotonically increasing counter for ordering events within a session
769* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
767770* `model`: Model identifier from the request
768771* `request_id`: Anthropic API request ID from the response's `request-id` header, such as `"req_011..."`. Present only when the API returns one.
769772* `query_source`: Subsystem that issued the request, such as `"repl_main_thread"`, `"compact"`, or a subagent name. See [`api_request`](#api-request-event) for definitions.
from line 790
787790* All [standard attributes](#standard-attributes)
788791* `event.name`: `"api_request_body"`
789792* `event.timestamp`: ISO 8601 timestamp
790* `event.sequence`: monotonically increasing counter for ordering events within a session
793* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
791794* `body`: JSON-serialized Messages API request parameters, such as the system prompt, messages, and tools, truncated at the content limit (60 KB by default). Extended-thinking content in prior assistant turns is redacted. Emitted only in inline mode (`OTEL_LOG_RAW_API_BODIES=1`).
792795* `body_ref`: Absolute path to a `<dir>/<uuid>.request.json` file containing the untruncated body. Emitted only in file mode (`OTEL_LOG_RAW_API_BODIES=file:<dir>`).
793796* `body_length`: Untruncated body length. UTF-8 bytes when `OTEL_LOG_RAW_API_BODIES=file:<dir>`, or UTF-16 code units when `=1`
from line 809
806809* All [standard attributes](#standard-attributes)
807810* `event.name`: `"api_response_body"`
808811* `event.timestamp`: ISO 8601 timestamp
809* `event.sequence`: monotonically increasing counter for ordering events within a session
812* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
810813* `body`: JSON-serialized Messages API response, including the id, content blocks, usage, and stop reason, truncated at the content limit (60 KB by default). Extended-thinking content is redacted. Emitted only in inline mode (`OTEL_LOG_RAW_API_BODIES=1`).
811814* `body_ref`: Absolute path to a `<dir>/<request_id>.response.json` file containing the untruncated body. Emitted only in file mode (`OTEL_LOG_RAW_API_BODIES=file:<dir>`).
812815* `body_length`: Untruncated body length. UTF-8 bytes when `OTEL_LOG_RAW_API_BODIES=file:<dir>`, or UTF-16 code units when `=1`
from line 829
826829* All [standard attributes](#standard-attributes)
827830* `event.name`: `"tool_decision"`
828831* `event.timestamp`: ISO 8601 timestamp
829* `event.sequence`: monotonically increasing counter for ordering events within a session
832* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
830833* `tool_name`: Name of the tool (for example, "Read", "Edit", "Write", "NotebookEdit")
831834* `tool_use_id`: Unique identifier for this tool invocation. Matches the `tool_use_id` passed to hooks, allowing correlation between OTel events and hook-captured data.
832835* `decision`: Either `"accept"` or `"reject"`
from line 862
859862* All [standard attributes](#standard-attributes)
860863* `event.name`: `"permission_mode_changed"`
861864* `event.timestamp`: ISO 8601 timestamp
862* `event.sequence`: monotonically increasing counter for ordering events within a session
865* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
863866* `from_mode`: The previous permission mode, for example `"default"`, `"plan"`, `"acceptEdits"`, `"auto"`, or `"bypassPermissions"`
864867* `to_mode`: The new permission mode
865868* `trigger`: What caused the change. One of `"shift_tab"`, `"exit_plan_mode"`, `"auto_gate_denied"`, or `"auto_opt_in"`. Absent when the transition originates from the SDK or bridge
from line 878
875878* All [standard attributes](#standard-attributes)
876879* `event.name`: `"auth"`
877880* `event.timestamp`: ISO 8601 timestamp
878* `event.sequence`: monotonically increasing counter for ordering events within a session
881* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
879882* `action`: `"login"` or `"logout"`
880883* `success`: `"true"` or `"false"`
881884* `auth_method`: Authentication method, such as `"oauth"`
from line 896
893896* All [standard attributes](#standard-attributes)
894897* `event.name`: `"mcp_server_connection"`
895898* `event.timestamp`: ISO 8601 timestamp
896* `event.sequence`: monotonically increasing counter for ordering events within a session
899* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
897900* `status`: `"connected"`, `"failed"`, or `"disconnected"`
898901* `transport_type`: Server transport, such as `"stdio"`, `"sse"`, or `"http"`
899902* `server_scope`: Scope the server is configured at, such as `"user"`, `"project"`, or `"local"`
from line 919
916919* All [standard attributes](#standard-attributes)
917920* `event.name`: `"internal_error"`
918921* `event.timestamp`: ISO 8601 timestamp
919* `event.sequence`: monotonically increasing counter for ordering events within a session
922* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
920923* `error_name`: Error class name, such as `"TypeError"` or `"SyntaxError"`
921924* `error_code`: Node.js errno code such as `"ENOENT"` when present on the error
922925 
from line 934
931934* All [standard attributes](#standard-attributes)
932935* `event.name`: `"plugin_installed"`
933936* `event.timestamp`: ISO 8601 timestamp
934* `event.sequence`: monotonically increasing counter for ordering events within a session
937* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
935938* `marketplace.is_official`: `"true"` if the marketplace is an official Anthropic marketplace, `"false"` otherwise
936939* `install.trigger`: `"cli"` or `"ui"`
937940* `plugin.name`: Name of the installed plugin. For third-party marketplaces this is included only when `OTEL_LOG_TOOL_DETAILS=1`
from line 952
949952* All [standard attributes](#standard-attributes)
950953* `event.name`: `"plugin_loaded"`
951954* `event.timestamp`: ISO 8601 timestamp
952* `event.sequence`: monotonically increasing counter for ordering events within a session
955* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
953956* `plugin.name`: name of the plugin. For plugins outside the official marketplace and built-in bundle the value is `"third-party"` unless `OTEL_LOG_TOOL_DETAILS=1`
954957* `marketplace.name`: marketplace the plugin was installed from, when known. Redacted to `"third-party"` under the same condition as `plugin.name`
955958* `plugin.version`: version from the plugin manifest. Included only when the name is not redacted and the manifest declares a version
from line 978
975978* All [standard attributes](#standard-attributes)
976979* `event.name`: `"skill_activated"`
977980* `event.timestamp`: ISO 8601 timestamp
978* `event.sequence`: monotonically increasing counter for ordering events within a session
981* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
979982* `skill.name`: Name of the skill. For user-defined and third-party plugin skills the value is the placeholder `"custom_skill"` unless `OTEL_LOG_TOOL_DETAILS=1`
980983* `invocation_trigger`: How the skill was triggered (`"user-slash"`, `"claude-proactive"`, or `"nested-skill"`)
981984* `skill.source`: Where the skill was loaded from (for example, `"bundled"`, `"userSettings"`, `"projectSettings"`, `"plugin"`)
from line 997
994997* All [standard attributes](#standard-attributes)
995998* `event.name`: `"at_mention"`
996999* `event.timestamp`: ISO 8601 timestamp
997* `event.sequence`: monotonically increasing counter for ordering events within a session
1000* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
9981001* `mention_type`: Type of mention (`"file"`, `"directory"`, `"agent"`, `"mcp_resource"`, `"peer"`). The `"peer"` value means you mentioned [one of your other Claude Code sessions](/docs/en/cross-session-messaging). Requires Claude Code v2.1.232 or later
9991002* `success`: Whether the mention resolved successfully (`"true"` or `"false"`)
10001003 
from line 1012
10091012* All [standard attributes](#standard-attributes)
10101013* `event.name`: `"api_retries_exhausted"`
10111014* `event.timestamp`: ISO 8601 timestamp
1012* `event.sequence`: monotonically increasing counter for ordering events within a session
1015* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
10131016* `model`: Model used
10141017* `error`: Final error message
10151018* `status_code`: HTTP status code as a number. Absent for non-HTTP errors.
from line 1031
10281031* All [standard attributes](#standard-attributes)
10291032* `event.name`: `"hook_registered"`
10301033* `event.timestamp`: ISO 8601 timestamp
1031* `event.sequence`: monotonically increasing counter for ordering events within a session
1034* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
10321035* `hook_event`: hook event type, such as `"PreToolUse"` or `"PostToolUse"`
10331036* `hook_type`: hook implementation type: `"command"`, `"prompt"`, `"mcp_tool"`, `"http"`, or `"agent"`
10341037* `hook_source`: where the hook is defined: `"userSettings"`, `"projectSettings"`, `"localSettings"`, `"flagSettings"`, `"policySettings"`, or `"pluginHook"`
from line 1051
10481051* All [standard attributes](#standard-attributes)
10491052* `event.name`: `"hook_execution_start"`
10501053* `event.timestamp`: ISO 8601 timestamp
1051* `event.sequence`: monotonically increasing counter for ordering events within a session
1054* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
10521055* `hook_event`: Hook event type, such as `"PreToolUse"` or `"PostToolUse"`
10531056* `hook_name`: Full hook name including matcher, such as `"PreToolUse:Write"`
10541057* `num_hooks`: Number of matching hook commands
from line 1071
10681071* All [standard attributes](#standard-attributes)
10691072* `event.name`: `"hook_execution_complete"`
10701073* `event.timestamp`: ISO 8601 timestamp
1071* `event.sequence`: monotonically increasing counter for ordering events within a session
1074* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
10721075* `hook_event`: Hook event type
10731076* `hook_name`: Full hook name including matcher
10741077* `num_hooks`: Number of matching hook commands
from line 1096
10931096* All [standard attributes](#standard-attributes)
10941097* `event.name`: `"hook_plugin_metrics"`
10951098* `event.timestamp`: ISO 8601 timestamp
1096* `event.sequence`: monotonically increasing counter for ordering events within a session
1099* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
10971100* `plugin_id`: plugin identifier in `<name>@<marketplace>` form
10981101* `hook_event`: hook event type that emitted the metrics
10991102* Up to 20 plugin-emitted metric keys. Names match `^[a-z][a-z0-9_]{0,39}$`. Values are boolean or number.
from line 1112
11091112* All [standard attributes](#standard-attributes)
11101113* `event.name`: `"compaction"`
11111114* `event.timestamp`: ISO 8601 timestamp
1112* `event.sequence`: monotonically increasing counter for ordering events within a session
1115* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
11131116* `trigger`: `"auto"` or `"manual"`
11141117* `success`: `"true"` or `"false"`
11151118* `duration_ms`: Compaction duration
from line 1132
11291132* All [standard attributes](#standard-attributes)
11301133* `event.name`: `"subagent_completed"`
11311134* `event.timestamp`: ISO 8601 timestamp
1132* `event.sequence`: monotonically increasing counter for ordering events within a session
1135* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
11331136* `agent_type`: The subagent type. Built-in agent names and agents from official-marketplace plugins appear verbatim; other agent names are replaced with `"custom"` unless `OTEL_LOG_TOOL_DETAILS=1` is set
11341137* `agent.source`: Where the agent definition came from: `built-in`, `plugin`, or the settings source that defined a custom agent, such as `userSettings` or `projectSettings`
11351138* `is_built_in`: Whether the subagent is a built-in agent type
from line 1156
11531156* All [standard attributes](#standard-attributes)
11541157* `event.name`: `"feedback_survey"`
11551158* `event.timestamp`: ISO 8601 timestamp
1156* `event.sequence`: monotonically increasing counter for ordering events within a session
1159* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
11571160* `event_type`: Survey lifecycle event, for example `"appeared"`, `"responded"`, or `"transcript_prompt_appeared"`
11581161* `appearance_id`: Unique ID linking the events emitted for one survey instance
11591162* `survey_type`: Which survey produced the event. `"session"` is the "How is Claude doing?" rating prompt
from line 1178
11751178* All [standard attributes](#standard-attributes)
11761179* `event.name`: `"retention_sweep"`
11771180* `event.timestamp`: ISO 8601 timestamp
1178* `event.sequence`: monotonically increasing counter for ordering events within a session
1181* `event.sequence`: per-process counter for ordering events, described under [Event correlation attributes](#event-correlation-attributes)
11791182* `result`: `"complete"` when the sweep ran, `"skipped"` when Claude Code paused it
11801183* `period_days`: The `cleanupPeriodDays` value from merged settings, in days, or `30` when no source sets it. On skipped events, the value the sweep would have used, computed from the settings sources Claude Code could read
11811184* `used_default`: `"true"` when no readable settings source sets `cleanupPeriodDays`, `"false"` otherwise. On complete events, `"true"` means the 30-day default applied