Endpoint
Set your exporter endpoint to:/v1/metrics/v1/logs/v1/traces(accepted; trace storage can be enabled later)
Authentication
Use a CostHawk token in OTLP headers:otel:ingest. If you installed MCP with:
otel:ingest included.
Example Configuration
Best Practices
- Use a dedicated ingest key per environment (dev/staging/prod)
- Rotate ingest keys periodically
- Keep MCP enabled for interactive queries in Claude Code/Codex
- Use Admin API sync for provider-level billing truth; use OTel for real-time activity signals
Common Troubleshooting
401 Unauthorized: invalid/missingx-costhawk-key415 Unsupported Media Type: exporter not sending OTLP protobuf/json- No events in dashboard: verify endpoint is
https://ingest.costhawk.ai(no extra/v1)
