SentryPhil Niedertscheider, Ricardo Oliveira, Armen Zambrano G.Tutorial
Monitor your CI performance using Sentry
Summary
CI pipelines like GitHub Actions can become engineering bottlenecks as build and verification times grow. Standard GitHub insights show total run times but lack per-job detail, making it hard to identify slow steps or regressions. Sentry’s distributed tracing treats a CI run like an API request, representing jobs as spans and workflows as traces. Using this approach, the Sentry team reduced a .NET job from about 1 hour 23 minutes to 24 minutes, a 71% improvement, by implementing caching and test parallelization. Custom dashboards then track p50 and p90 distributions over time, confirming a 64% overall reduction in workflow run duration.
Context
CI pipelines, such as GitHub Actions, can become bottlenecks as build and verification times increase. Standard GitHub insights show total run times but lack per-job detail and trend analysis, making it hard to identify slow steps or regressions. Sentry’s distributed tracing can treat CI runs as traces, providing granular span-level data.
Approach / What changed
Install the Sentry GitHub App, create a .sentry repository with a sentry_config.ini file containing the project DSN, and configure the app to access the workflows. The app reads the DSN, sends completed job data as traces to Sentry, and allows analysis via trace explorer and custom dashboards.
Takeaways
Sentry’s distributed tracing can represent CI workflow jobs as spans and entire workflows as traces, enabling granular performance analysis.
Using Sentry tracing, the Sentry team reduced a .NET job from ~1h 23min to ~24min (71% improvement) via caching and test parallelization.
Custom Sentry dashboards allow tracking p50 and p90 distributions over time, confirming a 64% overall reduction in workflow run duration.
FAQ
How do I set up Sentry tracing for GitHub Actions?
Create a new Sentry project, create a private .sentry repository in the GitHub organization or user account, commit a sentry_config.ini file with the project DSN, and install the Sentry GitHub App with read access to Actions, repository metadata, and the sentry_config.ini file.
Can the Sentry GitHub App read my code?
The app cannot read your code. It requests read access only to Actions, repository metadata, and the single sentry_config.ini file. When a workflow job completes, it reads the DSN from that file and sends the job data as a trace.
Does using this app affect my Sentry quota?
Yes, ingested traces count toward your span quota (or transaction quota on older plans). The app is considered experimental.
Source and freshness
- Source
- blog.sentry.io
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.