This repository contains the documentation and guide for the Fullstack Performance and Debugging workshop, built using Astro Starlight.
Sentry Build is a comprehensive hands-on workshop that teaches developers how to implement complete observability in Vite + React + React Router 7 frontend and Node.js backend JavaScript applications. The workshop covers:
- Setting up distributed tracing across fullstack JavaScript applications
- Implementing custom metrics and performance monitoring
- Instrumenting databases, queues, and caches for complete visibility
- Creating actionable alerts and dashboards
- Using Sentry's visualization tools for debugging and optimization
- Best practices for production-ready observability
The workshop content is organized into 4 comprehensive modules:
- Getting Started with Tracing and Logs - Set up Sentry tracing and logging in your Vite frontend and Bun backend application.
- Instrumenting Span Attributes, Metrics, and Alerts - Learn to add custom spans, attributes, and metrics to track your application's behavior.
- Tracing Database, Queues, and Caches - Instrument database queries, background jobs, and caching layers for complete visibility.
- Visualizing Traces in Sentry - Master Sentry's trace visualization tools to debug performance issues and optimize your application.
- Git
- Node.js (version 18 or higher)
- pnpm (recommended; Node.js ≥16.13 includes Corepack to enable pnpm)
- A Sentry account
# Clone the repository
git clone https://github.com/getsentry/sentry-build-frontend-performance-workshop-guide
cd sentry-build-frontend-performance-workshop-guide
# Install dependencies
pnpm install
# Start the development server
pnpm devThe documentation will be available at http://localhost:4321.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm astro ... |
Run CLI commands like astro add, astro check |
If you'd like to contribute to this workshop, feel free to open a pull request or file an issue on the repository.
This workshop uses modern JavaScript technologies:
- Frontend: Vite + React + React Router 7 with Sentry browser SDK
- Backend: Node.js runtime with Sentry Node.js SDK
- Database: SQLite with custom instrumentation
- Documentation: Astro Starlight
- Sentry Documentation
- JavaScript SDK Documentation
- Node.js SDK Documentation
- React SDK Documentation
- React Router Documentation
- Astro Starlight Documentation
This workshop uses several Astro Starlight components for enhanced learning:
import { Steps } from '@astrojs/starlight/components';
<Steps>
1. **Install Sentry SDK**
```bash
bun add @sentry/bun
```
2. **Configure Sentry**
Create your configuration file...
</Steps>import { Card, CardGrid } from '@astrojs/starlight/components';
<CardGrid>
<Card title="Module 1" icon="rocket">
Description of the module content.
</Card>
</CardGrid>:::tip[Pro Tip]
Your helpful tip content here.
:::
:::note[Important]
Important information to note.
:::
:::caution[Warning]
Warning about potential issues.
:::