Claude Code OpenTelemetry → Token Cheat
Summary
Claude Code can export OpenTelemetry spans. Point the OTLP HTTP endpoint at your Token Cheat ingest URL (see your deployment’s /api/tokencheat/otel) using a Bearer token with your organization API key.
Recommended flow
- Create an organization API key in the Token Cheat dashboard.
- Configure Claude Code / your collector to POST JSON payloads to the ingest route.
- Token Cheat stores batches in
otel_ingest_batchfor dashboard aggregation.
Security
- Use HTTPS only.
- Treat API keys like passwords; rotate if leaked.
This document is informational — refer to Anthropic’s Claude Code documentation for exporter specifics.