getsentry /sentry-javascript
Official Sentry SDKs for JavaScript
★ 8,776⑂ 1,890👁 115⑃ 15,422● 9,776▤ 766
+0
日增长
8,776
stars
1,890
forks
115
watchers
15,422
prs
9,776
issues
766
releases
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_
Official Sentry SDKs for JavaScript
This is the next line of Sentry JavaScript SDKs, comprised in the @sentry/ namespace. It will provide a more
convenient interface and improved consistency between various JavaScript environments.
Links
-
-
-
-
-
Contents
- Contributing
- Supported Platforms
- Installation and Usage
- Other Packages
- Bug Bounty Program
Supported Platforms
For each major JavaScript platform, there is a specific high-level SDK that provides all the tools you need in a single
package. Please refer to the README and instructions of those SDKs for more detailed information:
- @sentry/browser: SDK for Browsers
- @sentry/node: SDK for Node including
integrations for Express
- @sentry/angular: Browser SDK for
Angular
- @sentry/astro: SDK for Astro
- @sentry/ember: Browser SDK for Ember
- @sentry/react: Browser SDK for React
- @sentry/svelte: Browser SDK for Svelte
- @sentry/sveltekit: SDK for
SvelteKit
- @sentry/vue: Browser SDK for Vue
- @sentry/solid: Browser SDK for Solid
- @sentry/gatsby: SDK for Gatsby
- @sentry/nestjs: SDK for NestJS
- @sentry/nextjs: SDK for Next.js
- @sentry/nitro: SDK for Nitro
- @sentry/remix: SDK for Remix
- @sentry/tanstackstart-react: SDK for TanStack Start React
- @sentry/aws-serverless: SDK
for AWS Lambda Event Functions
- @sentry/google-cloud-serverless:
SDK for Google Cloud Functions
- @sentry/electron: SDK for Electron with support for native crashes
- @sentry/react-native: SDK for React Native with support for
native crashes
- @sentry/capacitor: SDK for Capacitor Apps and Ionic with support
for native crashes
- @sentry/effect: SDK for Effect (Alpha)
- @sentry/bun: SDK for Bun
- @sentry/elysia: SDK for Elysia
- @sentry/deno: SDK for Deno
- @sentry/cloudflare: SDK for
Cloudflare
Version Support Policy
We recognize the importance of continued support for our SDK across different versions.
Our commitment is to provide bug fixes and feature updates for older versions based on community demand and usage.
Installation and Usage
To install a SDK, simply add the high-level package, for example:
sh
npm install --save @sentry/browser
yarn add @sentry/browser
Setup and usage of these SDKs always follows the same principle.
javascript
import as Sentry from '@sentry/browser';
Sentry.init({
dsn: '__DSN__',
// ...
});
Sentry.captureMessage('Hello, world!');
Other Packages
Besides the high-level SDKs, this repository contains shared packages, helpers and configuration used for SDK
development. If you're thinking about contributing to or creating a JavaScript-based SDK, have a look at the resources
below:
- @sentry/replay:
Provides the integration for Session Replay.
- @sentry/core: The base for all
JavaScript SDKs with interfaces, tTop issues
#9301Incomplete/missing replays for non-SPA (MPA)31 comments · 2023-10-18#3105TypeScript w/ esModuleInterop: `import Sentry from "@sentry/{node|browser}"` is not an error, but does not work.23 comments · 2020-12-07#18248Function names remain mangled in Sentry stack traces after upgrading to Next.js 16 + Turbopack19 comments · 2025-11-19#15321Allow filtering errors from host-environment SDKs17 comments · 2025-02-03#14804Allow to send session sessions when using a client manually16 comments · 2024-12-19#9316Use Proxy for console instrumentation to avoid logs showing up as coming from `instrument.ts`15 comments · 2023-10-19#6908Keep min. 30 seconds for replay in error mode15 comments · 2023-01-23#19213Cannot upload Cloudflare worker.js sourcemaps when using OpenNext12 comments · 2026-02-06
Discussions
#25746Idea: let the SDK say which telemetry got lost, and where0 comments · 2026-10-26#24852createReduxEnhancer: how to capture rejected createAsyncThunk actions (rejectWithValue)?0 comments · 2026-09-29#21018OpenTelemetry dependencies in @sentry/node-core1 comments · 2026-05-19#20324Sentry.continueTrace in Cloudflare workflow1 comments · 2026-04-15#19776Minimum supported Node.js version will be raised to v220 comments · 2026-03-12#19669Seeking Assistance: Empty stack trace for "Maximum call stack size exceeded" on iOS (Self-hosted Sentry)2 comments · 2026-03-06#19667What could be performance impact with Sentry on Cloudflare Workers?1 comments · 2026-03-06#19668Size Analysis for JS SDK2 comments · 2026-03-06
Latest release
11.12.0 11.12.0 2026-11-10Important Changes
- feat(bundler-plugins): Enable hidden source maps and remove them after upload (25637, 25645, 25646, 25647, 25648)
The Sentry Rollup, Vite, webpack and esbuild plugins now turn on hidden source maps when your bundler has no source maps enabled and the plugin can upload them. They upload the maps to Sentry and remove them from the build output. You no longer need to set sourcemap: 'hidden' or filesToDeleteAfterUpload globs:
js
sentryVitePlugin({ org, project, authToken });
The new sourcemaps.deleteSourcemapsAfterUpload option controls the removal:
- Unset: th