From 0a36fcc732a133ddd900720055da7c00542e28f4 Mon Sep 17 00:00:00 2001 From: Mark Kim <103070941+marckong@users.noreply.github.com> Date: Sun, 15 Nov 2026 18:23:26 -0800 Subject: [PATCH] ci(ai-review): send each review's cost to Dash0 --- .github/workflows/ai-review-retarget-override.yml | 4 ++++ .github/workflows/ai-review.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ai-review-retarget-override.yml b/.github/workflows/ai-review-retarget-override.yml index 27af2e23..da52096b 100644 --- a/.github/workflows/ai-review-retarget-override.yml +++ b/.github/workflows/ai-review-retarget-override.yml @@ -11,6 +11,9 @@ jobs: retarget-or-override: if: github.event.changes.base || github.event.label.name == 'ai-review-override' uses: Kong/volcano-actions/.github/workflows/ai-review.yml@main + with: + # Sends each review's tokens and cost to Kong's Dash0. + otlp_endpoint: https://ingress.us-west-2.aws.dash0.com permissions: actions: write contents: read @@ -19,3 +22,4 @@ jobs: secrets: anthropic_api_key: ${{ secrets.ANTHROPIC_CI_API_KEY }} codex_access_token: ${{ secrets.CODEX_CI_ACCESS_TOKEN }} + otlp_headers: Authorization=Bearer ${{ secrets.DASH0_INGEST_TOKEN }},Dash0-Dataset=volcano diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index b57c517d..4bae4825 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -11,6 +11,8 @@ jobs: ai-review: uses: Kong/volcano-actions/.github/workflows/ai-review.yml@main with: + # Sends each review's tokens and cost to Kong's Dash0. + otlp_endpoint: https://ingress.us-west-2.aws.dash0.com hand_off: true permissions: actions: write @@ -20,6 +22,7 @@ jobs: secrets: anthropic_api_key: ${{ secrets.ANTHROPIC_CI_API_KEY }} codex_access_token: ${{ secrets.CODEX_CI_ACCESS_TOKEN }} + otlp_headers: Authorization=Bearer ${{ secrets.DASH0_INGEST_TOKEN }},Dash0-Dataset=volcano # Moves a PR back to draft after three failing AI review rounds in a row. # GitHub converts a PR to draft only for a token with contents: write, so # only this job gets one; it never checks out the PR. See