Getting Started With Sentry
Set up Sentry and configure the key features that help you find and fix problems faster.
Sentry captures errors, logs, traces, replays, profiles, and metrics from your application — and connects them all through distributed tracing. This page walks you through the steps to get the most out of Sentry after you've installed the SDK.
New to Sentry? → Sign up here or try the sandbox to explore the product without installing anything.
Connecting your source code repository is the single most impactful setup step. It unlocks:
- Suspect commits — Sentry identifies the most likely commit that introduced an error
- Seer AI debugging — root cause analysis, Autofix (automatic PR generation), and AI Code Review
- Stack trace links — click from a stack trace directly to the line in your repo
- Readable stack traces — upload source maps (JavaScript) or debug symbols (native) for de-minified/de-obfuscated stack traces
Set up your GitHub, GitLab, or Bitbucket integration in Settings > Integrations.
Alerts make sure the right people know when things go wrong. Sentry supports:
- Alerts — notify on new errors, regressions, error spikes, or when thresholds like error rate, latency and crash-free session rate are crossed
- Uptime monitors — watch your endpoints for downtime
- Cron monitors — track scheduled jobs for failures or missed runs
Route alerts to Slack, Discord, PagerDuty, or your issue tracker (Jira, Linear, GitHub Issues). See alert best practices for tips on avoiding noise.
After basic error monitoring, these features add the debugging context that will help you find and fix problems faster:
| Feature | What it adds | Set up |
|---|---|---|
| Tracing | Follow requests across services, find slow queries and N+1s | Enable tracesSampleRate in SDK config |
| Logs | Structured logs alongside errors and traces | Enable enableLogs: true in SDK config — set up guide |
| Session Replay | Video-like recordings of user sessions (web and mobile) | Enable replay in SDK config |
| Profiling | CPU profiles showing which functions are slow | Enable profiling in SDK config |
| Application Metrics | Custom counters, gauges, distributions | Add metric calls to your code |
| User Feedback | Collect bug reports from users, linked to errors | Add the feedback widget |
Check out Sentry's cookbooks to learn more about how others use Sentry, and how to go deeper with each of Sentry's tools.
Once data is flowing, use these tools to understand your application's health:
- Dashboards — pre-built views for frontend, backend, mobile, and AI performance, plus custom dashboards
- Trace Explorer — search, filter, and aggregate span data to find performance bottlenecks
- Releases — track crash-free sessions, version adoption, and regressions by deploy
Our Guides cover real-world patterns for each feature:
- What to Prioritize — error handling and triage strategies
- What to Log — structured logging patterns
- What to Track — choosing the right metrics
- Querying Traces — finding slow pages and bottlenecks
- Adding Custom Spans — instrumenting your own code
- Using Session Replay — debugging workflows with replays
The Sentry Cookbook has step-by-step recipes for common workflows, including debugging with MCP + Cursor, setting up AI observability, creating dashboards with AI agents, and more.
- Sandbox — explore Sentry with pre-populated sample data
Follow along with a sample app to set up error monitoring or distributed tracing end-to-end:
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
