Internative Logo

What Is Sentry? Error Tracking and Performance Monitoring Explained

What Is Sentry? Error Tracking and Performance Monitoring Explained

Most production bugs are found by users first. Someone taps a button, the app crashes or a page shows a blank screen, and by the time a support ticket reaches the developers, the details that would explain the failure are gone. Sentry is built to close that gap: it captures errors and slow operations the moment they happen in a running application, with the stack trace and context a developer needs to reproduce and fix them.

This article explains what Sentry is, how it collects and groups errors, which features matter in practice, when it is the right tool, and how it compares with the alternatives.

What is Sentry?

Sentry is an application monitoring platform focused on error tracking and performance monitoring for developers. You add a Sentry SDK to your application; from then on, unhandled exceptions, crashes and slow transactions are sent to Sentry, grouped into issues and shown with the code, environment and user actions that led to them. It is available as a hosted service at sentry.io and can also be self-hosted.

The project started as an open-source side project by David Cramer. Its first commit was made on 12 May 2008 under the name django-db-log, a small tool for logging Django exceptions to a database instead of emailing every error. It grew into Sentry, the hosted service was spun out of the open-source project, and the company behind it today is Functional Software, Inc.

Sentry's licence has changed over time. It was BSD-licensed open source for its first decade, moved to the Business Source License in 2019, and in November 2023 switched to the Functional Source License (FSL), which Sentry introduced itself. Under FSL anyone can use and self-host Sentry, but not offer a competing commercial version; each release converts to the Apache 2.0 licence after two years. The SDKs that go into your application are MIT-licensed.

How Sentry works

SDKs inside the application. Sentry provides SDKs for a wide range of platforms, including JavaScript and its frameworks, Python, Java, .NET, PHP, Go, iOS, Android, Flutter and React Native. The SDK hooks into the runtime's error handling, so unhandled exceptions are captured without extra code, and you can report handled errors or custom events explicitly.

Events with context. Each captured event carries the stack trace, the release version, the environment, the browser or device, breadcrumbs (the user actions and requests that came before the error) and any tags you add. Source maps and debug symbols turn minified or compiled code back into readable file names and line numbers.

Grouping into issues. Thousands of identical errors become one issue with a count, first and last seen times and the affected users. That keeps the signal readable and makes it clear which problem hurts the most people.

Tracing and performance. The same SDKs record transactions and spans, such as a page load, an API call or a database query, and connect them across front end and back end with distributed tracing. Slow requests and N+1 queries show up next to the errors they cause.

Alerts and workflow. Alert rules notify the team in tools such as Slack or email, and integrations with GitHub, GitLab and Jira link issues to commits, suspect releases and tickets.

Key features

  • Error monitoring with stack traces, breadcrumbs and release tracking.
  • Performance monitoring and distributed tracing from browser to database.
  • Session Replay, a video-like reconstruction of what the user saw before an error.
  • Logs and uptime monitoring, so outages and log lines can be tied to traces.
  • Release health, including crash-free session rates for mobile and desktop apps.
  • Seer, Sentry's AI feature for root-cause analysis and suggested fixes.
  • Self-hosting with the same feature set as the hosted service.

Where Sentry is used

  • Web front ends, where JavaScript errors and slow page loads are otherwise invisible to the team. Sentry has dedicated SDKs for frameworks such as Next.js and React.
  • Mobile apps, to catch crashes on real devices, including apps built with Flutter.
  • APIs and back-end services, for example on Node.js or .NET, to see exceptions together with the request that caused them.
  • Release monitoring, to spot a regression right after a deployment and roll back quickly.
  • Support teams, who can look up exactly what went wrong for a specific user.

When to choose Sentry, and when not to

Choose Sentry when:

  • The main question is "what broke, where in the code, and for whom".
  • You run several clients, such as web, iOS and Android, and want errors from all of them in one place.
  • You want error tracking and performance data linked to releases and commits.
  • You may need to self-host for data residency or privacy reasons.

Look elsewhere, or add something, when:

  • You need infrastructure metrics such as CPU, memory or queue depth. A metrics system such as Prometheus is built for that.
  • You need full-text search and analysis across all application logs. A dedicated log server such as Seq or an Elasticsearch stack goes deeper.
  • You want one commercial platform for metrics, logs, traces and errors together. A broad observability suite such as Datadog may fit better.
  • Event volume is very high and uncontrolled. Sampling and filtering need to be configured, or noise and quota usage grow quickly.

Sentry and its alternatives

ToolFocusHostingBest fit
SentryError tracking and application performanceSaaS or self-hostedDeveloper-facing debugging across many platforms
DatadogFull observability suiteSaaSOrganisations wanting one platform for everything
Firebase CrashlyticsMobile crash reportingSaaS (Google)Mobile apps already on Firebase
RollbarError trackingSaaSTeams that need error tracking only
SeqStructured log searchSelf-hosted.NET-heavy teams centralising logs

The closest comparison is Sentry vs logging. A log records whatever the code chooses to write; Sentry captures failures automatically, adds context, groups them and tells you when something new appears. Most production systems use both: logs for the full story, Sentry for the errors that need attention. For performance and infrastructure, Sentry is often paired with Prometheus and Grafana rather than replacing them.

How we use Sentry at Internative

We use Sentry to monitor application stability and performance proactively. It helps us find issues before they affect users, and it is one of the tools we rely on to keep production systems reliable and of consistently high quality.

That kind of monitoring matters most after launch, when the question becomes how quickly problems are seen and fixed; we look at this in Software maintenance and support after launch.

If you want error tracking and performance monitoring set up for a live application, our application maintenance and monitoring team can help.

Frequently asked questions

What is Sentry used for?

Sentry is used to find and fix errors and performance problems in running applications. It captures exceptions, crashes and slow requests automatically, groups them into issues, and shows developers the stack trace and context they need, often before users report the problem.

Is Sentry open source and free?

Sentry's code is public and can be self-hosted at no licence cost under the Functional Source License, which allows any use except offering a competing commercial service and converts to Apache 2.0 after two years. The hosted service has a free developer plan and paid plans for teams.

Who are Sentry's competitors?

The most common comparisons are Datadog and New Relic for broad observability, Rollbar and Bugsnag for error tracking, and Firebase Crashlytics for mobile crash reporting. The choice usually depends on whether you want a focused debugging tool or one platform for all monitoring.

What is Sentry Native?

Sentry Native is Sentry's SDK for applications written in C and C++, running on Windows, macOS and Linux. It also provides native crash reporting underneath other Sentry SDKs, such as those for the Android NDK, Flutter, .NET, Unity and Unreal Engine.

What is the difference between Sentry and logging?

Logging records the messages your code writes, and you have to search them yourself. Sentry captures errors automatically, enriches them with context, groups duplicates and alerts you when something new or worse appears. The two complement each other.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.