Developer-first application monitoring with error tracking, performance analysis, and session replay.
Claim your free access at GitHub Education Pack - look for Sentry.
- Main Dashboard: https://sentry.io
- Auth Tokens: https://sentry.io/settings/account/api/auth-tokens/
- Project Settings: https://sentry.io/settings/ → Projects
- Error Tracking: Capture errors with stack traces, breadcrumbs, and context
- Performance Monitoring: Trace requests across services
- Session Replay: Record user interactions before errors
- Profiling: Identify slow functions
- Cron Monitoring: Watch scheduled jobs
- Logging: Application log collection
npm install @sentry/nodeimport * as Sentry from '@sentry/node';
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
tracesSampleRate: 1.0,
});
// Capture exception
Sentry.captureException(error);npm install @sentry/reactimport * as Sentry from '@sentry/react';
Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN,
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 1.0,
});pip install sentry-sdkimport sentry_sdk
sentry_sdk.init(
dsn=os.environ.get("SENTRY_DSN"),
traces_sample_rate=1.0,
)go get github.com/getsentry/sentry-goimport "github.com/getsentry/sentry-go"
sentry.Init(sentry.ClientOptions{
Dsn: os.Getenv("SENTRY_DSN"),
})Copy from templates/sentry/:
sentry.client.config.js- Browser SDK configsentry.server.config.js- Server SDK config.sentryclirc- CLI configuration.env.example- Environment variables
SENTRY_DSN=https://key@sentry.io/project
# Get from: https://sentry.io → Project Settings → Client Keys (DSN)
SENTRY_AUTH_TOKEN=your_auth_token
# Get from: https://sentry.io/settings/account/api/auth-tokens/
SENTRY_ORG=your-org-slug
SENTRY_PROJECT=your-project-slugnpm install @sentry/cli
# Create release
sentry-cli releases new v1.0.0
# Upload source maps
sentry-cli releases files v1.0.0 upload-sourcemaps ./dist- Create releases: Track which version caused errors
- Upload source maps: Get readable stack traces
- Set sample rates: Adjust
tracesSampleRatefor volume control - Add context: Include user info, tags, and custom data
- Configure environments: Separate staging from production
- GitHub, GitLab, Bitbucket (commit tracking)
- Slack, PagerDuty, Jira
- Vercel, Netlify (auto-releases)