Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

Internal metrics exporter gains 401 recovery, redirect refusal and export telemetry

Under the hood
Useful2 Signal2
Telemetry

Internal metrics export now recovers from expired tokens and refuses redirects.

What

For builds that export internal metrics, posts now recover from an expired OAuth token: a 401 re-reads the token and, if unchanged, attempts one refresh per exporter before retrying. Redirects are refused outright. A token-exchange error that previously counted as success when the org setting said metrics were disabled now fails the export.

Details
  • The refused-redirect behaviour comes from setting the maximum redirects to zero on each post.
  • The swallowed exchange error is now reported as wif_error.
  • New telemetry reports the first successful export and de-duplicated failures, including the HTTP status where known.
  • A shutdown-budget timer reports exports still in flight when the process is winding down as a failure.
  • No feature flag; only trust and endpoint checks decide whether this runs.
Evidence

BigQuery metrics export still in flight at the shutdown budget

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.247 →