Skip to content

Commit

Permalink
Trace GitHub Actions Workflows (#516)
Browse files Browse the repository at this point in the history
When workflows complete, send the entire workflow trace to Honeycomb so
that we can track workflow behaviour over time, e.g.
- success rate
- duration

This will show us detailed view into every step of the workflow.

Signed-off-by: Gerhard Lazu <[email protected]>
  • Loading branch information
gerhard authored Jun 9, 2024
1 parent 15019e1 commit 3777082
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/trace_workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Trace GitHub Actions Workflows"

on:
workflow_run:
workflows:
- "Dagger on K8s"
- "Dagger on GitHub"
- "Dagger on Fly.io"
types:
- completed

permissions:
contents: read

jobs:
run:
name: Export '${{ github.event_name }}' workflow trace
runs-on: ubuntu-latest
if: ${{ github.repository == 'thechangelog/changelog.com' }}
steps:
- name: Export Workflow Trace
uses: corentinmusard/otel-cicd-action@9d13430746676ba690999657315ec3f162269f49
with:
otlpEndpoint: grpc://api.honeycomb.io:443/
otlpHeaders: ${{ secrets.HONEYCOMB_GITHUB_ACTIONS_WORKFLOWS }}
otelServiceName: github-actions
githubToken: ${{ secrets.GITHUB_TOKEN }}
runId: ${{ github.event.workflow_run.id }}

0 comments on commit 3777082

Please sign in to comment.