mizcausevic-dev/LLM Cost Rollup

Read OTel GenAI cost-annotated spans from a workflow artifact, aggregate by (date, provider, model), and post a Markdown summary as a PR comment. Optionally fails the run when total spend exceeds a budget.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
inputPath to the OTLP/JSON file containing cost-annotated GenAI spans.yes
bucketGroup rows by 'day', 'month', or 'all'. Default 'day'.noday
comment-on-prPost the Markdown table as a PR comment. Defaults to 'true' when this run is in a pull_request event.noauto
fail-over-usdOptional spending ceiling in USD. When set, the action fails if total cost > this value.no
github-tokenToken used to post the PR comment (defaults to GITHUB_TOKEN).no${{ github.token }}
namedescription
total-cost-usdTotal accumulated spend across the rollup, as a number string.
spansNumber of spans processed.
rowsJSON array of rollup rows.