You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docs): add Sentry SDK for error tracking, replay, and metrics (#122)
## 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
- Integrates `@sentry/astro` with client and server configs
- Enables error tracking, session replay (10% sample, 100% on error),
and tracing
- Adds two custom metrics:
- `hero_command_copied` - tracks when users copy an install command
- `hero_install_method_selected` - tracks when users switch between
curl/npx/npm/pnpm/bun
## Test Plan
1. Run `cd docs && bun run dev`
2. Open browser console and verify Sentry initializes (enable `debug:
true` in client config if needed)
3. Click the dropdown to change install method → metric sent
4. Click copy button → metric sent
5. Check Sentry project **Insights > Metrics** for the custom metrics
## Notes
- `SENTRY_AUTH_TOKEN` env var needed for source maps upload in
production
- SDK is enabled in all environments including dev for testing
---
Closes#117
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments