-
-
Notifications
You must be signed in to change notification settings - Fork 2
feat(docs): add Sentry SDK for error tracking, replay, and metrics #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Integrates @sentry/astro with: - Error tracking and session replay - Performance tracing (100% sample rate) - Custom metrics for hero section interactions: - hero_command_copied (when users copy install commands) - hero_install_method_selected (when users change dropdown) Closes #117 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
🤖 This preview updates automatically when you update the PR. |
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 1756 uncovered lines. Files with missing lines (24)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 66.66% 66.66% —%
==========================================
Files 45 45 —
Lines 5267 5267 —
Branches 0 0 —
==========================================
+ Hits 3511 3511 —
- Misses 1756 1756 —
- Partials 0 0 —Generated by Codecov Action |
|
The inline scripts in InstallSelector.astro need access to Sentry.metrics but @sentry/astro imports Sentry as an ES module without exposing it on window. This adds the global exposure so custom metrics work. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Summary
Adds @sentry/astro to the docs website for monitoring errors, user sessions, and performance. Also tracks custom metrics when users interact with the hero install command section.
Changes
@sentry/astrowith client and server configshero_command_copied- tracks when users copy an install commandhero_install_method_selected- tracks when users switch between curl/npx/npm/pnpm/bunTest Plan
cd docs && bun run devdebug: truein client config if needed)Notes
SENTRY_AUTH_TOKENenv var needed for source maps upload in productionCloses #117