Sentry — Open Source Error Tracking & Performance Monitoring
Sentry is the developer-first error tracking and performance monitoring platform. Capture exceptions, trace performance issues, and debug production errors across all languages.
What it is
Sentry is a developer-first platform for error tracking and performance monitoring. It captures unhandled exceptions, logs stack traces with full context, and surfaces performance bottlenecks in production applications. Sentry supports Python, JavaScript, Go, Java, Ruby, PHP, and dozens of other languages and frameworks.
The tool is used by development teams of all sizes who need real-time visibility into application health. From solo developers to large engineering organizations, Sentry provides the same core workflow: an error fires, Sentry groups it, and you get an actionable alert with the stack trace, breadcrumbs, and affected user data.
How it saves time or tokens
Without Sentry, debugging production errors requires searching through log files, reproducing issues locally, and guessing at root causes. Sentry reduces this cycle by automatically capturing the error context: stack trace, request data, user info, and the sequence of events (breadcrumbs) leading to the crash. The average time from error to diagnosis drops significantly.
How to use
- Create a Sentry project and grab your DSN (Data Source Name).
- Install the SDK for your language or framework.
- Initialize Sentry in your application entry point.
# Python example
import sentry_sdk
sentry_sdk.init(
dsn='https://examplePublicKey@o0.ingest.sentry.io/0',
traces_sample_rate=1.0,
profiles_sample_rate=1.0,
)
# Errors are captured automatically
# You can also capture manually:
try:
process_order(order_id)
except Exception as e:
sentry_sdk.capture_exception(e)
Example
// Next.js integration
import * as Sentry from '@sentry/nextjs';
Sentry.init({
dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',
tracesSampleRate: 1.0,
});
// All unhandled errors in API routes and pages
// are automatically captured and grouped
Related on TokRepo
- DevOps tools — Explore monitoring and deployment tools for production systems
- Testing tools — Complement error tracking with automated test coverage
Common pitfalls
- Setting traces_sample_rate to 1.0 in high-traffic production sends every transaction to Sentry, which burns through your event quota fast. Start with 0.1 and adjust upward.
- Forgetting to configure source maps for JavaScript means stack traces show minified code, making them unreadable.
- Sentry groups errors by stack trace by default; custom fingerprinting may be needed for errors that share stack traces but have different root causes.
Frequently Asked Questions
Sentry offers a free Developer plan that includes 5,000 errors per month, one user, and basic features. For teams, the Team plan starts at a monthly fee and includes more events, multiple users, and additional features like performance monitoring dashboards.
Yes. Sentry is open source and provides official Docker-based self-hosting instructions. Self-hosting gives you full control over data retention and privacy. The trade-off is that you manage infrastructure, updates, and scaling yourself.
Sentry uses a fingerprinting algorithm based on the stack trace, exception type, and error message. Identical errors across multiple users get grouped into a single 'issue' with a count. You can override the default fingerprinting with custom rules if the automatic grouping is too broad or too narrow.
Yes. Sentry traces transactions end-to-end, showing you how long each database query, API call, and template render takes. Performance issues like N+1 queries and slow spans are detected automatically and surfaced as performance issues alongside errors.
Sentry has official SDKs for Python, JavaScript (React, Next.js, Vue, Angular), Go, Java, Kotlin, Ruby, PHP, .NET, Rust, Swift, and more. Community SDKs extend coverage to additional platforms. Each SDK follows language-specific conventions for error capture and context.
Citations (3)
- Sentry GitHub— Sentry is an open-source error tracking platform with SDKs for dozens of languag…
- Sentry Python Docs— Sentry Python SDK initialization and configuration
- Sentry Developer Docs— Sentry self-hosting via Docker Compose
Related on TokRepo
Discussion
Related Assets
HumHub — Open-Source Enterprise Social Network
A flexible, open-source social networking platform built on Yii2 for creating private communities, intranets, and collaboration spaces within organizations.
Dolibarr — Open-Source ERP & CRM for Business Management
A modular open-source ERP and CRM application written in PHP for managing contacts, invoices, orders, inventory, accounting, and more from a single web interface.
PrestaShop — Open-Source PHP E-Commerce Platform
A widely adopted open-source e-commerce platform written in PHP with a rich module marketplace, multi-language support, and a strong European user base.