Use Sentry Tracing to find slow GitHub Actions jobs
Brief
Sentry outlines how to monitor GitHub Actions performance by sending workflow jobs to Sentry as traces. The collection app is experimental.
What the tracing shows
- Workflow jobs and their sequential steps appear as traces and spans, which can be explored and compared on custom dashboards, including p50 and p90 durations.
- In Sentry’s example, caching across runs and parallelizing tests reduced the workflow’s total time from about 1 hour 23 minutes to about 24 minutes; the Build step fell from about 44 minutes to about 8 minutes.
- Sentry reports a 71% reduction in the job’s duration and about a 64% reduction in workflow run times.
Setup and limits
- Setup requires a Sentry project, a private .sentry repository with a sentry_config.ini containing the project DSN, and installation of Sentry’s GitHub App with access to the relevant workflows.
- The app requests read access to Actions, repository metadata, and the single configuration file; it cannot read code.
- The app is experimental, and ingested traces count toward the span quota, or the transaction quota on older plans.
Generated by AI from the original article. Check the source for full details.