Sentry

Sentry

Application monitoring and error tracking for developers

Features

  • Real-time error tracking with stack traces
  • Performance monitoring with distributed tracing
  • Session replay for reproducing user issues
  • Release tracking and deploy monitoring

Pros

  • Best error tracking experience for developers
  • Excellent source map support for JavaScript
  • Open-source with self-hosting option

Cons

  • Pricing scales with event volume
  • Can be noisy without proper configuration
  • Self-hosted version requires significant resources

Overview

Sentry is an application monitoring platform focused on error tracking and performance monitoring. It captures unhandled exceptions, provides detailed stack traces with source maps, and groups similar errors together for efficient triage.

Beyond error tracking, Sentry provides performance monitoring with distributed tracing, allowing you to see the full journey of a request across frontend, backend, and third-party services. Session replay lets you watch a video-like reconstruction of what the user was doing when an error occurred.

Sentry supports 100+ platforms and frameworks, with deep integrations for React, Next.js, Node.js, Python, and more. It is open-source and can be self-hosted, though most teams use the managed SaaS offering.

When to Use

Use Sentry in every production application for error tracking. It is the industry standard for understanding and fixing errors in production. Add performance monitoring when you need visibility into application performance bottlenecks.

Getting Started

npm install @sentry/react
import * as Sentry from '@sentry/react'

Sentry.init({
  dsn: 'https://your-dsn@sentry.io/project-id',
  tracesSampleRate: 0.1,
})