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.
Instalación lista para agent
Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.
npx -y tokrepo@latest install ece57add-34d8-11f1-9bc6-00163e2b0d79 --target codexEjecutar después de confirmar el plan con dry-run.
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.
Preguntas frecuentes
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.
Referencias (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
Relacionados en TokRepo
Discusión
Activos relacionados
Ghostfolio — Open Source Wealth Management & Portfolio Tracker
Ghostfolio is an open-source personal finance dashboard for tracking stocks, ETFs, crypto, and other investments with real-time market data and performance analytics.
Huly — All-in-One Open Source Project Management Platform
Huly is an open-source alternative to Linear, Jira, Slack, and Notion. Project tracking, team chat, knowledge base, and HR tools in a single unified platform.
Maybe — Open Source Personal Finance Manager
Maybe is an open-source personal finance app for tracking net worth, investments, spending, and budgets with bank syncing and self-hosting support.
Reactive Resume — AI-Powered Open-Source Resume Builder
Free open-source resume builder with AI integration. Supports Claude, GPT, Gemini for content generation. Drag-and-drop, PDF export, self-hostable, privacy-first. MIT, 36,000+ stars.