Skip to content

Latest commit

 

History

History
90 lines (57 loc) · 3.13 KB

File metadata and controls

90 lines (57 loc) · 3.13 KB
title TanStack Start React
description Learn how to set up and configure Sentry in your TanStack Start React application using the installation wizard and capture your first events in Sentry.
sdk sentry.javascript.tanstackstart-react
categories
server
browser

Install

Logs and Application Metrics need no extra configuration, and you'll learn how to send them in steps #3 and #4.

Control the Data You Send to Sentry

Send Logs

If you already use console, capture those calls as Sentry Logs with consoleLoggingIntegration. We also provide integrations for:

  • Consola
  • Pino

Send Application Metrics

On Node.js, nodeRuntimeMetricsIntegration also collects runtime health metrics automatically.

Verify Your Setup

Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project.

Add this button to a page in your app and click it to send a test error:

<button
  type="button"
  onClick={() => {
    throw new Error("Sentry Test Error");
  }}
>
  Break the world
</button>

Start your dev server and click the button.

View Captured Data in Sentry

Now, head over to your project on Sentry.io to view the collected data (it takes a couple of moments for the data to appear).

Next Steps

You've successfully integrated Sentry into your TanStack Start React application! Here's what to explore next:

  • Explore practical guides on what to monitor, log, track, and investigate after setup
  • Set up Agent Tracing to monitor your AI systems
  • Explore TanStack Start React-specific features