@sentry/tanstackstart-react
TypeScript icon, indicating that this package has built-in type declarations

9.17.0 • Public • Published

Sentry

Official Sentry SDK for TanStack Start React (Alpha)

npm version npm dm npm dt

NOTICE: This package is in alpha state and may be subject to breaking changes.

Getting Started

This SDK does not have docs yet. Stay tuned.

Compatibility

The minimum supported version of TanStack Start is 1.111.12.

Custom Usage

To set context information or to send manual events, you can use @sentry/tanstackstart-react as follows:

import * as Sentry from '@sentry/tanstackstart-react';

// Set user information, as well as tags and further extras
Sentry.setTag('user_mode', 'admin');
Sentry.setUser({ id: '4711' });
Sentry.setContext('application_area', { location: 'checkout' });

// Add a breadcrumb for future events
Sentry.addBreadcrumb({
  message: '"Add to cart" clicked',
  // ...
});

// Capture exceptions or messages
Sentry.captureException(new Error('Oh no.'));
Sentry.captureMessage('Hello, world!');

Links

/@sentry/tanstackstart-react/

    Package Sidebar

    Install

    npm i @sentry/tanstackstart-react

    Weekly Downloads

    1,478

    Version

    9.17.0

    License

    MIT

    Unpacked Size

    33.9 kB

    Total Files

    51

    Last publish

    Collaborators

    • billyvg
    • mitsuhiko
    • haza
    • jauer
    • sentry-bot
    • evanpurkhiser
    • lynnagara
    • leedongwei
    • markstory
    • zeeg