Telemetry can route through Anthropic's own gateway, but only under a narrow set of conditions.
What's wrong with this entry?
Telemetry export now decides per signal (metrics, logs, traces) whether to send OTLP data to a gateway endpoint derived from ANTHROPIC_BASE_URL, authenticated with a Bearer header from ANTHROPIC_AUTH_TOKEN. It only does this when CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST is set, the auth mode is first-party/gateway, the token is scoped to the gateway audience, you have set no OTLP headers of your own, and your OTLP endpoint already matches the derived URL. Any other combination sends nothing.
- The check runs separately for each signal, so metrics can qualify while traces do not.
- User-set
OTEL_EXPORTER_OTLP_*headers disqualify the signal outright, so your own collector configuration is never overridden. - Falls back to returning "do not send" rather than erroring.
claude-gateway
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.225
OAuth 401 recovery no longer silently replaces a user-supplied token
Both mention auth token provider managed host
-
v2.1.222
Host-managed provider sessions take model policy from the parent process
Both mention provider managed host
-
v2.1.227
Two memory-API environment variables are hidden from commands Claude runs
Both mention base token