Detect, understand, and fix errors and performance bottlenecks with clear, actionable debugging context for your React application—across components, state changes, and API requests.
Detect, understand, and fix errors and performance bottlenecks with clear, actionable debugging context for your React application—across components, state changes, and API requests.
Get detailed stack traces and debugging context for every error.
Trace connected issues across components, state updates, and async operations.
See exactly what led up to an issue to debug hydration errors, navigation failures, layout shifts, and rage clicks.
Powered by OpenTelemetry, Trace user interactions, slow component rendering, and API calls in a single trace without having to piece together logs or dashboards for debugging.
Sentry spots the bottlenecks that are impacting real users like:
Rendering delays from inefficient hooks and effects
Unnecessary re-renders that degrade performance
Slow API responses from fetch calls and state updates
Blocking middleware increasing response times
Bloated React bundles
Codecov gives you clear insights into your React app’s coverage and test performance, helping you spot coverage gaps and fix flaky tests.
Identify gaps in component and API test coverage
Spot flaky tests causing CI/CD failures
Ensure critical functionality like state updates and routing is well-tested
Grab the Sentry React SDK:
npm install @sentry/react
We recommend putting the Sentry initialization code into its own file and including that file as the first import in your application entry point as shown in the example below:
import { useEffect } from "react"; import * as Sentry from "@sentry/react"; Sentry.init({ dsn: "https://examplePublicKey@o0.ingest.sentry.io/0", integrations: [ ], // Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled tracePropagationTargets: [/^\//, /^https:\/\/yourserver\.io\/api/], });
Include the Sentry initialization file as the first import statement:
// Sentry initialization should be imported first! import "./instrument"; import App from "./App"; import { createRoot } from "react-dom/client"; const container = document.getElementById(“app”); const root = createRoot(container); root.render(<App />);
Whether it's a flickering UI or missing elements, Sentry's hydration error diff tools make it easy to instantly detect and debug mismatches between server-rendered and client-rendered HTML.
Monitor React component render times and identify slow updates that impact user experience.
Track Redux actions and state transitions to understand what changed before an issue occurred.
Missed background syncs or failed API updates can go unnoticed, leading to broken functionality. Ensure your scheduled tasks are running on time and without errors with Sentry’s monitoring tools
Get real-time alerts when your application is unavailable, so you can respond quickly before it impacts your users.
Sentry supports every major frontend language, framework, and library. You can browse each of them here.
You can get started for free. Pricing depends on the number of monthly events, transactions, and attachments that you send Sentry. For more details, visit our pricing page.
Sentry doesn’t impact a web site’s performance.
If you look at the configuration options for when you initialize Sentry in your code, you’ll see there’s nothing regarding minimizing its impact on your app’s performance. This is because our team of SDK engineers already developed Sentry with this in mind.
Sentry is a listener/handler for errors that asynchronously sends out the error/event to Sentry.io. This is non-blocking. The error/event only goes out if this is an error.
Global handlers have almost no impact as well, as they are native APIs provided by the browsers.
Get started with the only application monitoring platform that empowers developers to fix application problems without compromising on velocity.
Here’s a quick look at how Sentry handles your personal information (PII).
×We collect PII about people browsing our website, users of the Sentry service, prospective customers, and people who otherwise interact with us.
What if my PII is included in data sent to Sentry by a Sentry customer (e.g., someone using Sentry to monitor their app)? In this case you have to contact the Sentry customer (e.g., the maker of the app). We do not control the data that is sent to us through the Sentry service for the purposes of application monitoring.
Am I included?We may disclose your PII to the following type of recipients:
You may have the following rights related to your PII:
If you have any questions or concerns about your privacy at Sentry, please email us at compliance@sentry.io.
If you are a California resident, see our Supplemental notice.