Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Telemetry shutdown and flushing on exit reworked

How Claude Code flushes and shuts down its OpenTelemetry metrics, logs and traces on exit has been restructured

You'll notice Improvements
JSON All of v2.1.333
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
TelemetryArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What

OpenTelemetry is the standard Claude Code can use to send metrics, logs and traces to a monitoring system you run. The way Claude Code shuts these down and pushes out (flushes) any remaining data when it exits has changed:

  • Metrics, logs and traces are shut down through a restructured sequence.
  • Flushing now always finishes with a clean-up step, even when something fails.
  • The exit step is set up one of two ways, depending on whether any exporter is configured.
  • When session tokens are sent as OTLP headers, extra named headers can now be added.
  • The Prometheus exporter is no longer wrapped in a compatibility layer.

CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS still sets how long the flush may take.

Why

If you have telemetry switched on, the way Claude Code exits may behave slightly differently.

See this entry in the whole of v2.1.333 →

Feedback