Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions dogfood-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
#
# It promotes the Claude Code / agent GenAI attributes to columns so a source
# can aggregate its own telemetry natively (RFC 0022 + RFC 0037 §3.3), e.g.
# count by attr.model — calls per model (from api_request events)
# count by attr.tool_name — tool-use distribution (from tool_decision events)
# count by attr.decision — accept/deny mix (from tool_decision events)
# count by attr.model — calls per model (api_request events)
# count by attr.tool_name — tool-use distribution (tool_decision)
# count by attr.decision — accept/deny mix (tool_decision)
# sum(attr.cost_usd) by attr.model — spend per model (api_request)
# These are Claude Code's *actual* (flat) attribute keys, verified against its
# OTLP output — not the OTel GenAI semantic-convention dotted form
# (gen_ai.request.model, gen_ai.tool.name, …), which Claude Code does not emit;
Expand Down Expand Up @@ -62,6 +63,19 @@ storage:
- model
- tool_name
- decision
# The FinOps loop (sum/avg over spend and usage, RFC0002.17 +
# RFC 0042): typed classes matching the AnyValue variants Claude
# Code actually emits, verified against captured api_request
# events — cost_usd is a doubleValue, the token counts intValues.
# A bare (string-class) promotion of these keys would project
# always-NULL columns (RFC 0022 §3.1 string-only rule), and
# sum(attr.cost_usd) would yield a NULL aggregate — every input
# excluded, value null — with no hint that the class was wrong:
# sum(attr.cost_usd) by attr.model
# sum(attr.output_tokens) by attr.model
- { key: cost_usd, type: f64 }
- { key: input_tokens, type: i64 }
- { key: output_tokens, type: i64 }
receiver:
enabled: true
grpc_addr: "127.0.0.1:24317"
Expand Down