sentry-react-sdk

Configure Sentry monitoring for React single-page applications with tracing and session replays.

1|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/ENG-BXI/SAAS-SMART-SHIPMENT-TRACKING-CLIENT-SIDE --skill sentry-react-sdk-eng-bxi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-react-sdk
Source: https://github.com/ENG-BXI/SAAS-SMART-SHIPMENT-TRACKING-CLIENT-SIDE/tree/main/.agents/skills/sentry-react-sdk
Command: npx skills add https://github.com/ENG-BXI/SAAS-SMART-SHIPMENT-TRACKING-CLIENT-SIDE --skill sentry-react-sdk-eng-bxi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you add reliable Sentry error monitoring, tracing, and observability to a React frontend so issues are captured with useful context instead of disappearing in production.

Core Features & Use Cases

  • Opinionated Sentry setup: Guides React-specific installation and initialization with a required early-entry instrumentation pattern.
  • End-to-end observability: Covers Error Monitoring, Tracing, Session Replay, optional Logging, and optional Profiling for performance visibility.
  • Framework-aware integrations: Recommends router and state-management integrations (React Router v5–v7, TanStack Router, Redux) and includes source map setup for readable stack traces.

Quick Start

Use the sentry-react-sdk skill to add Sentry to your React app by creating a dedicated src/instrument.ts with Sentry.init and importing it first from your entry file, then enabling Error Monitoring and Tracing with your DSN and build-time release.

Frequently Asked Questions about sentry-react-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Sentry error monitoring to a React single-page application?

To add Sentry error monitoring to a React SPA, create a dedicated src/instrument.ts file with Sentry.init and import it first from your entry file. This early-entry pattern ensures the SDK captures errors before other application code executes.

What is the best way to configure Sentry tracing and session replay in React?

Configuring Sentry tracing and session replay in React involves initializing the SDK with your DSN and build-time release, then enabling Browser Tracing and Session Replay integrations. This setup provides end-to-end visibility into application performance and user interactions.

Does Sentry SDK work with React Router v5 through v7 and TanStack Router?

Yes, Sentry SDK works with React Router v5 through v7 and TanStack Router. The setup provides framework-aware integrations that automatically instrument route changes to capture navigation traces and component-level performance data accurately.

How do I handle React 19 errors with Sentry versus using an ErrorBoundary?

Handling React 19 errors with Sentry requires correct SDK initialization for native error capture versus using ErrorBoundary patterns. The configuration guides you through React 19 specific error handling to ensure uncaught exceptions are reported properly.

Can I use Sentry with Vite or webpack to generate readable source maps?

Yes, you can use Sentry with Vite or webpack/CRA to generate readable source maps. The setup includes build-time release configuration and source map upload guidance, ensuring production stack traces are unminified and actionable.

Why are my Sentry production errors in React missing Redux state context?

Sentry production errors in React miss Redux state context when framework-aware integrations are omitted. Configuring the Redux integration during SDK initialization attaches relevant state transitions to captured errors for better debugging.