sentry-react-router-framework-sdk

Integrate Sentry error monitoring and performance tracing into React Router applications.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/achmf/KostaHub --skill sentry-react-router-framework-sdk-achmf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-react-router-framework-sdk
Source: https://github.com/achmf/KostaHub/tree/main/.agents/skills/sentry-react-router-framework-sdk
Command: npx skills add https://github.com/achmf/KostaHub --skill sentry-react-router-framework-sdk-achmf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @sentry/react-router, @sentry/profiling-node, and includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex task of integrating Sentry into React Router v7 framework applications, ensuring comprehensive error monitoring and performance tracing across both client and server environments.

Core Features & Use Cases

  • Full-Stack Observability: Automatically configures error monitoring, tracing, and session replay for both browser and server entry points.
  • Framework Integration: Provides specialized wrappers for React Router loaders, actions, and server handlers to ensure no request or error goes uncaptured.
  • Use Case: Use this Skill when you need to set up Sentry in a new React Router project to track server-side performance issues and client-side user interactions simultaneously.

Quick Start

Invoke the sentry react router framework sdk to guide you through the automated installation and configuration of Sentry in your current project.

Frequently Asked Questions about sentry-react-router-framework-sdk

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

FAQPage Schema
How do I set up Sentry error monitoring in a React Router v7 application?

Setting up Sentry in React Router requires configuring both browser and server entry points for full-stack observability. You must wrap loaders, actions, and server handlers to automatically capture errors and trace performance across client-side hydration and server-side requests.

What is full-stack observability for React Router framework applications?

Full-stack observability means tracking errors, performance, and session replays across both client and server environments. For React Router, this ensures that server-side request handling issues and client-side user interactions are monitored simultaneously without blind spots.

Do I need @sentry/profiling-node to enable tracing in React Router?

Yes, @sentry/profiling-node is required for complete observability coverage, alongside @sentry/react-router. These dependencies work together to provide full error monitoring, performance tracing, and profiling for both browser and server execution contexts.

Can I track server-side performance issues and client-side user interactions at the same time?

Yes, you can track both simultaneously by integrating Sentry into your React Router project. The integration automatically configures error monitoring and performance tracing for both browser hydration and server-side request handling to capture the full request lifecycle.

What's the best way to capture errors in React Router loaders and actions?

The best way to capture errors in loaders and actions is to use specialized Sentry wrappers. Wrapping these framework-specific functions ensures that no request or error goes uncaptured during server-side data fetching and mutation handling.

How do I handle build-time source map uploads when integrating Sentry with React Router?

Build-time source map uploads are handled as part of the Sentry integration process for React Router. This configuration ensures that original source code is mapped to minified production bundles, enabling accurate error stack traces.