getsentry/sentry-react-native

TypeScriptsentry.io
AndroidiOS

Official Sentry SDK for React Native

sentrysdkandroidjavascriptiosreact-nativecrash-reportingtypescripttag-productionteam-mobile
스타 성장
스타
1.8k
포크
366
주간 성장
+2
이슈
112
5001k1.5k
2017년 3월2020년 5월2023년 7월2026년 9월
아티팩트npm
README

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

Sentry SDK for React Native

Build & Test npm version npm dm npm dt X Follow Discord Chat Runs with Expo

Releases

This repo uses the following ways to release SDK updates:

  • Pre-release: We create pre-releases (alpha, beta, RC,…) for larger and potentially more impactful changes, such as new features or major versions.
  • Latest: We continuously release major/minor/hotfix versions from the main branch. These releases go through all our internal quality gates and are very safe to use and intended to be the default for most teams.
  • Stable: We promote releases from Latest when they have been used in the field for some time and in scale, considering time since release, adoption, and other quality and stability metrics. These releases will be indicated on the releases page with the Stable suffix.

For a list of which SDK versions are bundled with each release, see SDK-VERSIONS.md.

Requirements

  • react-native >= 0.65.0

Features

  • Automatic JS Error Tracking (using @sentry/browser)
  • Automatic Native Crash Error Tracking (using sentry-cocoa & sentry-android under the hood)
  • Offline storage of events
  • On Device symbolication for JS (in Debug)
  • Autolinking
  • Events with enriched device data
  • RAM bundle support
  • Hermes support
  • Expo support
  • RN New Architecture support

Installation and Usage

To install the package and setup your project:

npx @sentry/wizard -s -i reactNative

How to use it:

import * as Sentry from "@sentry/react-native";

Sentry.init({
  dsn: "__DSN__",

  // Set tracesSampleRate to 1.0 to capture 100%
  // of transactions for performance monitoring.
  // We recommend adjusting this value in production
  tracesSampleRate: 1.0,
});

Sentry.setTag("myTag", "tag-value");
Sentry.setExtra("myExtra", "extra-value");
Sentry.addBreadcrumb({ message: "test" });

Sentry.captureMessage("Hello Sentry!");

Upgrade

If you are coming from react-native-sentry which was our SDK < 1.0 you should follow the upgrade guide and then follow the install steps.

Blog posts

Introducing Mobile Screenshots and Suspect Commits.

Tips for Optimizing React Native Application Performance - Part 2: Using Sentry SDK for Performance Monitoring.

Tips for Optimizing React Native Application Performance: Part 1.

Tracking Stability in a Bluetooth Low Energy-Based React-Native App.

Mobile Vitals - Four Metrics Every Mobile Developer Should Care About.

Performance Monitoring Support for React Native.

Resources

  • Documentation
  • Discussions
  • Discord Chat
  • Code of Conduct
  • X Follow
관련 저장소
getsentry/sentry

Developer-first error tracking and performance monitoring

PythonPyPIOthercrash-reportingcrash-reports
sentry.io
44.7k4.8k
getsentry/self-hosted

Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept

ShellOthersentrydocker
develop.sentry.dev/self-hosted/
9.6k2k
getsentry/sentry-javascript

Official Sentry SDKs for JavaScript

TypeScriptnpmlibraryMIT Licensecrash-reportingraven
sentry.io
8.7k1.8k
vercel/next-forge

Production-grade Turborepo template for Next.js apps.

TypeScriptnpmMIT Licensenextjsprisma
next-forge.com
7.7k713
s3rius/FastAPI-template

Feature rich robust FastAPI template.

PythonPyPIMIT Licensefastapicookiecutter
2.8k238
getsentry/sentry-python

The official Python SDK for Sentry.io

PythonPyPIlibraryMIT Licensesentrypython
sentry.io/for/python/
2.2k664
alxshelepenok/lumen

A constantly evolving and thoughtful architecture for creating static blogs.

TypeScriptnpmMIT Licensegatsbygraphql
2k639
getsentry/sentry-php

The official PHP SDK for Sentry (sentry.io)

PHPPackagistlibraryMIT Licensephperror-monitoring
sentry.io
1.9k475
evloghq/evlog

Digging through logs is not observability. It's hope — wide events, structured errors, TypeScript-first, every runtime.

TypeScriptnpmMIT Licensedebuggingerror-handling
evlog.dev
1.8k61
HugoRCD/evlog

Digging through logs is not observability. It's hope — wide events, structured errors, TypeScript-first, every runtime.

TypeScriptnpmMIT Licensedebuggingerror-handling
evlog.dev
1.8k61
getsentry/raven-python

Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python

PythonPyPIBSD 3-Clause "New" or "Revised" Licensecrash-reportingcrash-reports
sentry.io
1.7k649
getsentry/sentry-java

A Sentry SDK for Java, Android and other JVM languages.

KotlinlibraryMIT Licensesentryjava
docs.sentry.io
1.4k478