Unverified50% confidenceFactExact time
The events exported by Claude Code include user_prompt, api_request (with cost_usd, duration_ms and token counts per call), api_error, tool_result and tool_decision.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/18/2026
First Seen
Valid until: 1/16/2027
Sources
Claude Code 已内置 OpenTelemetry:Grafana 追踪成本与模型
Related Entities
Related Claims
UnverifiedThe main metrics exported by Claude Code include claude_code.cost.usage (USD cost), claude_code.token.usage (split by input/output/cacheRead/cacheCreation), claude_code.session.count, claude_code.lines_of_code.count, claude_code.commit.count, claude_code.pull_request.count, claude_code.active_time.total and claude_code.code_edit_tool.decision.74% similarUnverifiedAccording to the demonstration, tasks such as debugging, checking error logs, and managing n8n instances can also be handled by Claude Code.69% similarUnverifiedEvery Claude Code metric and event carries session.id and user.id (a random installation identifier); when logged in with a Claude account, organization.id, user.account_uuid and user.email are also populated.66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1064448API
curl https://kongchang.com/api/v1/knowledge/claims/1064448MCP
get_claim(id=1064448)