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

  1. Create an organization API key in the Token Cheat dashboard.
  2. Configure Claude Code / your collector to POST JSON payloads to the ingest route.
  3. Token Cheat stores batches in otel_ingest_batch for 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.