Skip to content

[token-consumption] Daily AIC Consumption Report - 2026-10-07 #66541

Description

@github-actions

Executive Summary

  • Total AIC: Not queryable — no recognized AIC attributes (gh-aw.aic, gh_aw.aic, agent_usage.aic, aic) were found on any Sentry span/event in the last 24h.
  • Workflow count: Not derivable from AIC data; span/transaction metadata shows multiple gh-aw workflow runs (gh-aw.activation.setup, several gen_ai.chat spans across models: copilot/claude-sonnet-5, copilot/gpt-5.4, copilot/gpt-6-astra, claude-haiku-4.5, openai/gpt-5.6-sol, generic agent).
  • Sentry AIC queryable? No — confirmed absent on all sampled spans (gen_ai.chat, http.server, default).
  • Grafana AIC queryable? Unknown/unconfirmed — the Tempo TraceQL query tools (tempo_get-attribute-names, tempo_traceql-search, tempo_get-trace) described in the task instructions were not available as callable tools in this session; only list_datasources/get_datasource were available, which confirmed a Tempo datasource (grafanacloud-ghaw-traces, uid grafanacloud-traces) exists but AIC presence could not be directly verified.

Key Metrics

Metric Value
Events analyzed 70 (50 generic spans sample + 20 gen_ai.chat spans sample, Sentry spans dataset, 24h)
Events with AIC data 0
Events with AIC data (Sentry) 0
Events with AIC data (Grafana) Unknown (tooling unavailable)
Total AIC Unknown — no numeric AIC values found
Unique workflows Not derivable (no github.workflow/AIC fields populated in sampled spans)
Avg AIC/event N/A
P95 AIC/event N/A

Top 10 Workflows by AIC Consumption

Not available — no events carried AIC or workflow-attribution fields in the sampled data. Observed gen_ai.chat span counts by model (not AIC, just event counts) for visibility only:

Model (span.description) Events (sampled) Total AIC Avg AIC/Event
chat claude-haiku-4.5 9 Unknown Unknown
chat agent 4 Unknown Unknown
chat copilot/gpt-6-astra 2 Unknown Unknown
chat copilot/claude-sonnet-5 2 Unknown Unknown
chat copilot/gpt-5.4 2 Unknown Unknown
chat openai/gpt-5.6-sol 1 Unknown Unknown

Grafana AIC Findings

Grafana AIC is not confirmed queryable in this run.

  • list_datasources(type=tempo) succeeded and returned one Tempo datasource: grafanacloud-ghaw-traces (uid grafanacloud-traces), confirmed via get_datasource.
  • The TraceQL/Tempo query tools required by the task (tempo_get-attribute-names, tempo_traceql-search, tempo_get-trace) were not present among the tools available to this agent session — only list_datasources and get_datasource were callable. This is a tooling/MCP-server-exposure gap in this run, not a confirmed data gap in Tempo itself.
  • No trace-level evidence of AIC attributes could be gathered from Grafana as a result.
  • Grafana base URL may be redacted in safe-outputs rendering; datasource UID grafanacloud-traces is provided above for reference.
Data Quality and Gaps
  • Events missing workflow identifiers: All sampled spans lacked github.workflow/gh_aw.workflow fields in the returned payload; transaction names (gateway.request, gh-aw.activation.setup, default) were used as weak proxies but are not true workflow names.
  • Events missing AIC attributes: 100% of sampled Sentry spans (70/70) had no recognized AIC field (gh-aw.aic, gh_aw.aic, agent_usage.aic, aic).
  • Assumptions/fallbacks used: Per spec, Sentry spans without AIC fields were treated as 0; this makes the absence highly visible — effectively total_aic = 0 from Sentry, which should be read as "not instrumented" rather than "no cost incurred."
  • Sentry-specific caveats: search_events (AI-powered search) was not available in this MCP build, so list_events with direct query syntax was used per fallback instructions. Query span.op:ai* returned 0 results; span.op:gen_ai.chat returned 20 chat spans but none exposed AIC fields in the field list requested.
  • Errors dataset: queried, 0 results in 24h — explicitly confirmed, not skipped.
  • Logs dataset: queried, 20 results returned, but all are internal engine/runtime logs (llm runtime selected, stream, process, loop, evaluated permission checks) with no AIC/cost fields present.
  • Grafana-specific caveats: Tempo TraceQL tools were unavailable in this session despite being referenced in the task instructions; only datasource discovery tools worked. This should be treated as an environment/tool-exposure gap, not evidence that Tempo itself lacks AIC attributes.

Recommendations

  1. Instrument AIC emission on spans: Confirm the OTLP span emitter (actions/setup/js/send_otlp_span.cjs) actually sets a numeric gh-aw.aic (or equivalent) attribute on gen_ai.chat/gen_ai.execute_tool spans. Current data suggests this attribute is either not emitted or not indexed/searchable in Sentry EAP.
  2. Add workflow attribution attributes: Ensure spans carry github.workflow (or gh_aw.workflow) consistently so future reports can aggregate AIC by workflow instead of falling back to generic transaction names like default/gateway.request.
  3. Restore/verify Tempo MCP tool availability: The Grafana extension in this environment only exposed list_datasources/get_datasource; tempo_traceql-search and related tools should be enabled so Grafana-side AIC cross-checks are possible in future runs.
  4. Re-run with search_events enabled: If an embedded LLM provider becomes configured for the Sentry MCP server, re-run this report using search_events for richer natural-language AIC aggregation and to double check the list_events fallback findings.

References

Generated by 📊 Daily AIC Consumption Report (Sentry + Grafana OTel) · goose · sonnet50 · 28.9 AIC · ⌖ 8.24 AIC · ⊞ 11.2K · ◷

  • expires on Oct 8, 2026, 3:59 AM UTC-08:00

Activity

  1. github-actions commented on Oct 8, 2026

    @github-actions
    ContributorAuthor

    This issue is being closed as outdated. A newer issue has been created: #66870

    View newer issue


    This action was performed automatically by the Daily AIC Consumption Report (Sentry + Grafana OTel) workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions