Skip to main content

sentry

Installation#

yarn add @uplift-ltd/sentry

API#

import { captureException, captureMessage } from "@uplift-ltd/sentry";
Sentry.captureException(new Error("Baroque"));
Sentry.captureMessage("Does not compute");

Add NEXT_PUBLIC_SENTRY_DSN to .env. If using in Node (for example for Next.js) you can add a separate SENTRY_DSN (defaults to NEXT_PUBLIC_SENTRY_DSN if not provided).

React Native#

See the @uplift-ltd/sentry-react-native package.