Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Traces now record token counts and the model that answered

When tracing is on, each model call's trace now records input, output and cache token counts and the model that replied

Under the hood Internal Changes
JSON All of v2.1.331
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
TelemetryArea: what it touches
Internal ChangesKind: in v2.1.331,
Internal ChangesSection of the release
What

Claude Code can send traces using OpenTelemetry, a standard format for recording what a program does and how long it takes. Each request to the model is recorded as a span, one timed entry in a trace. That span used to record only why the model stopped.

It now also records:

  • gen_ai.usage.input_tokens, which includes tokens read from and written to the cache
  • gen_ai.usage.output_tokens
  • gen_ai.usage.cache_read.input_tokens
  • gen_ai.usage.cache_write.input_tokens
  • gen_ai.response.model

Tokens are the small pieces of text the model reads and writes, and they are what usage is measured in.

Why

If you collect traces, you can now see how many tokens each model call used and which model replied. This only applies when tracing is turned on.

See this entry in the whole of v2.1.331 →

Feedback