Official Sentry SDKs for JavaScript
MIT License
Bot releases are visible (Hide)
Published by getsentry-bot 11 months ago
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 65.46 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 55.68 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.03 KB |
@sentry/browser - Webpack (gzipped) | 21.34 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 62 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 29.14 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.29 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 195.53 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 88.43 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 63.41 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.86 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 65.81 KB |
@sentry/react - Webpack (gzipped) | 21.39 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 82.53 KB |
@sentry/nextjs Client - Webpack (gzipped) | 48.17 KB |
@sentry-internal/feedback - Webpack (gzipped) | 16.04 KB |
Published by getsentry-bot 11 months ago
db.prisma
(#9512)Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 65.42 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 55.63 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.98 KB |
@sentry/browser - Webpack (gzipped) | 21.3 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 61.95 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 29.1 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.24 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 195.42 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 88.32 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 63.3 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.81 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 65.77 KB |
@sentry/react - Webpack (gzipped) | 21.34 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 82.49 KB |
@sentry/nextjs Client - Webpack (gzipped) | 48.13 KB |
@sentry-internal/feedback - Webpack (gzipped) | 16 KB |
Published by getsentry-bot 12 months ago
<meta>
tags (#9483)MetaFunction
parameters (#9493)Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 65.25 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 55.49 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.98 KB |
@sentry/browser - Webpack (gzipped) | 21.3 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 61.83 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 29.1 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.24 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 194.91 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 88.32 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 63.3 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.81 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 65.61 KB |
@sentry/react - Webpack (gzipped) | 21.34 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 82.35 KB |
@sentry/nextjs Client - Webpack (gzipped) | 48.13 KB |
@sentry-internal/feedback - Webpack (gzipped) | 15.98 KB |
Published by getsentry-bot 12 months ago
origin
to trace context (#9472)Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 65.24 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 55.49 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.98 KB |
@sentry/browser - Webpack (gzipped) | 21.3 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 61.82 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 29.09 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.23 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 194.89 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 88.3 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 63.28 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.8 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 65.61 KB |
@sentry/react - Webpack (gzipped) | 21.34 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 82.34 KB |
@sentry/nextjs Client - Webpack (gzipped) | 48.12 KB |
@sentry-internal/feedback - Webpack (gzipped) | 15.81 KB |
Published by getsentry-bot 12 months ago
We've dramatically decreased the bundle size of our Replay package, reducing the minified & gzipped bundle size by ~20 KB!
This was possible by extensive use of tree shaking and a host of small changes to reduce our footprint:
By using tree shaking it is possible to shave up to 10 additional KB off the bundle.
openDialog
and closeDialog
onto integration interface (#9464)beforeErrorSampling
(#9470)Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 65.24 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 55.48 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.97 KB |
@sentry/browser - Webpack (gzipped) | 21.29 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 61.82 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 29.09 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.23 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 194.87 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 88.28 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 63.28 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.8 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 65.61 KB |
@sentry/react - Webpack (gzipped) | 21.34 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 82.34 KB |
@sentry/nextjs Client - Webpack (gzipped) | 48.12 KB |
@sentry-internal/feedback - Webpack (gzipped) | 15.81 KB |
Published by getsentry-bot 12 months ago
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 77.46 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 56.69 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.97 KB |
@sentry/browser - Webpack (gzipped) | 21.29 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 67.83 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 29.09 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.23 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 216.89 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 88.28 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 63.28 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.8 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 77.84 KB |
@sentry/react - Webpack (gzipped) | 21.34 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 94.18 KB |
@sentry/nextjs Client - Webpack (gzipped) | 47.86 KB |
Published by getsentry-bot 12 months ago
This release adds Sentry.withMonitor()
, a wrapping function that wraps a callback with a cron monitor that will automatically report completions and failures:
import * as Sentry from '@sentry/node';
// withMonitor() will send checkin when callback is started/finished
// works with async and sync callbacks.
const result = Sentry.withMonitor(
'dailyEmail',
() => {
// withMonitor return value is same return value here
return sendEmail();
},
// Optional upsert options
{
schedule: {
type: 'crontab',
value: '0 * * * *',
},
// 🇨🇦🫡
timezone: 'Canada/Eastern',
},
);
jsx
and tsx
file extensions (#9362)replay_id
is not added to DSC if session expired (#9359)Work in this release contributed by @LubomirIgonda1. Thank you for your contribution!
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 77.44 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 66.48 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.94 KB |
@sentry/browser - Webpack (gzipped) | 21.26 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 67.66 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.93 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.09 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 216.39 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 87.77 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 62.76 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.71 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 77.83 KB |
@sentry/react - Webpack (gzipped) | 21.29 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 94.16 KB |
@sentry/nextjs Client - Webpack (gzipped) | 47.83 KB |
Published by getsentry-bot 12 months ago
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 82.66 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 71.77 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.94 KB |
@sentry/browser - Webpack (gzipped) | 21.26 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 73.03 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.93 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.09 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 233.81 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 87.77 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 62.76 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.71 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 83.05 KB |
@sentry/react - Webpack (gzipped) | 21.29 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 99.43 KB |
@sentry/nextjs Client - Webpack (gzipped) | 47.83 KB |
Published by getsentry-bot 12 months ago
@sentry/opentelemetry
package (#9238)This release publishes a new package, @sentry/opentelemetry
. This is a runtime agnostic replacement for @sentry/opentelemetry-node
and exports a couple of useful utilities which can be used to use Sentry together with OpenTelemetry.
You can read more about @sentry/opentelemetry in the Readme.
Starting with this release, you can configure the following build-time flags in order to reduce the SDK bundle size:
__RRWEB_EXCLUDE_CANVAS__
__RRWEB_EXCLUDE_IFRAME__
__RRWEB_EXCLUDE_SHADOW_DOM__
You can read more about tree shaking in our docs.
lru_map
dependency (#9300)cookie
module (#9308)Replay
and BrowserTracing
integrations tree-shakeable (#9287)autoInstrumentMiddleware
functionality (#9323)getInitialProps
may return undefined (#9342)Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 82.66 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 71.77 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.94 KB |
@sentry/browser - Webpack (gzipped) | 21.26 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 73.03 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.93 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.09 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 233.81 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 87.77 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 62.76 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.71 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 83.05 KB |
@sentry/react - Webpack (gzipped) | 21.29 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 99.43 KB |
@sentry/nextjs Client - Webpack (gzipped) | 47.83 KB |
Published by getsentry-bot almost 1 year ago
This is a test release for publishing the Deno SDK.
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 82.51 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 71.67 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 30.64 KB |
@sentry/browser - Webpack (gzipped) | 21.24 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 73.02 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.69 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.08 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 233.76 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 87.09 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 62.72 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.45 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 82.98 KB |
@sentry/react - Webpack (gzipped) | 21.28 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 99.38 KB |
@sentry/nextjs Client - Webpack (gzipped) | 47.54 KB |
Published by getsentry-bot about 1 year ago
astro-integration
keyword (#9265)fetch
(#9275)defer
injection logic. (#9242)Work in this release contributed by @LubomirIgonda1. Thank you for your contribution!
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 83.98 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.57 KB |
@sentry/browser - Webpack (gzipped) | 21.75 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 80.47 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 29.51 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.69 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 245.55 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 85.53 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.45 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 32.64 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 84.05 KB |
@sentry/react - Webpack (gzipped) | 21.79 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 102.18 KB |
@sentry/nextjs Client - Webpack (gzipped) | 49.65 KB |
Published by getsentry-bot about 1 year ago
sentryAstro
integration (#9218)This Release introduces the first alpha version of our new SDK for Astro.
At this time, the SDK is considered experimental and things might break and change in future versions.
The core of the SDK is an Astro integration which you easily add to your Astro config:
// astro.config.js
import { defineConfig } from "astro/config";
import sentry from "@sentry/astro";
export default defineConfig({
integrations: [
sentry({
dsn: "__DSN__",
sourceMapsUploadOptions: {
project: "astro",
authToken: process.env.SENTRY_AUTH_TOKEN,
},
}),
],
});
Check out the README for usage instructions and what to expect from this alpha release.
addIntegration
utility (#9186)continueTrace
method (#9164)VueIntegration
to initialize vue app later (#9180)referrerPolicy
on serverside fetch transports (#9200)init
(#9162)inspector
when needed (#9149)debug
option and instead add logger.isEnabled() (#9230).mjs
and .cjs
extensions from module name (#9231)processEvent
integration hook (#9151)processEvent
(#9021)rethrowAfterCapture
option (#9159)walk
method (#9157)Work in this release contributed by @aldenquimby. Thank you for your contributions!
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 84.27 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.43 KB |
@sentry/browser - Webpack (gzipped) | 22.02 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 78.79 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.6 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 21.02 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 254.51 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.76 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 62.45 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.48 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 84.3 KB |
@sentry/react - Webpack (gzipped) | 22.06 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 102.21 KB |
@sentry/nextjs Client - Webpack (gzipped) | 50.96 KB |
Published by getsentry-bot about 1 year ago
This is fully backwards compatible with prior versions of the Replay SDK. The only breaking change that we will making is to not be masking aria-label
by default. The reason for this change is to align with our core SDK which also does not mask aria-label
. This change also enables better support of searching by clicks.
Another change that needs to be highlighted is the 13% bundle size increase. This bundle size increase is necessary to bring improved recording performance and improved replay fidelity, especially in regards to web components and iframes. We will be investigating the reduction of the bundle size in this PR.
Here are benchmarks comparing the version 1 of rrweb to version 2
metric | v1 | v2 |
---|---|---|
lcp | 1486.06 ms | 1529.11 ms |
cls | 0.40 ms | 0.40 ms |
fid | 1.53 ms | 1.50 ms |
tbt | 3207.22 ms | 3036.80 ms |
memoryAvg | 131.83 MB | 124.84 MB |
memoryMax | 324.8 MB | 339.03 MB |
netTx | 282.67 KB | 272.51 KB |
netRx | 8.02 MB | 8.07 MB |
captureAllExceptions
by default (#9102)tunnel
is considered for isSentryUrl
checks (#9130)RequestAsyncStorage
fallback path (#9126)load
functions (#9071)InboundFilters
integration to use processEvent
(#9020)processEvent
(#9019)Work in this release contributed by @vlad-zhukov. Thank you for your contribution!
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 84.26 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.42 KB |
@sentry/browser - Webpack (gzipped) | 22 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 78.69 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.52 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.59 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 254.14 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.42 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.23 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.38 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 84.28 KB |
@sentry/react - Webpack (gzipped) | 22.03 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 102.2 KB |
@sentry/nextjs Client - Webpack (gzipped) | 50.95 KB |
Published by getsentry-bot about 1 year ago
This release introduces support for Application Not Responding (ANR) errors for Node.js applications.
These errors are triggered when the Node.js main thread event loop of an application is blocked for more than five seconds.
The Node SDK reports ANR errors as Sentry events and can optionally attach a stacktrace of the blocking code to the ANR event.
To enable ANR detection, import and use the enableANRDetection
function from the @sentry/node
package before you run the rest of your application code.
Any event loop blocking before calling enableANRDetection
will not be detected by the SDK.
Example (ESM):
import * as Sentry from "@sentry/node";
Sentry.init({
dsn: "___PUBLIC_DSN___",
tracesSampleRate: 1.0,
});
await Sentry.enableANRDetection({ captureStackTrace: true });
// Function that runs your app
runApp();
Example (CJS):
const Sentry = require("@sentry/node");
Sentry.init({
dsn: "___PUBLIC_DSN___",
tracesSampleRate: 1.0,
});
Sentry.enableANRDetection({ captureStackTrace: true }).then(() => {
// Function that runs your app
runApp();
});
RequestAsyncStorage
locations by locations that webpack will resolve (#9114)replay_id
is not captured when session is expired (#9109)Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 75.58 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.46 KB |
@sentry/browser - Webpack (gzipped) | 22.06 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.28 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.57 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.65 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 222.21 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.57 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.42 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.43 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 75.61 KB |
@sentry/react - Webpack (gzipped) | 22.09 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 93.48 KB |
@sentry/nextjs Client - Webpack (gzipped) | 51.04 KB |
Published by getsentry-bot about 1 year ago
basename
-prefixed route. (#9076)processEvent
(#9022)Work in this release contributed by @jorrit. Thank you for your contribution!
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 75.58 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.46 KB |
@sentry/browser - Webpack (gzipped) | 22.06 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.27 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.57 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.64 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 222.17 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.57 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.42 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.43 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 75.6 KB |
@sentry/react - Webpack (gzipped) | 22.09 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 93.48 KB |
@sentry/nextjs Client - Webpack (gzipped) | 51.04 KB |
Published by getsentry-bot about 1 year ago
This release contains the beta version of @sentry/bun
, our SDK for the Bun JavaScript runtime! For details on how to use it, please see the README. Any feedback/bug reports are greatly appreciated, please reach out on GitHub.
Note that as of now the Bun runtime does not support global error handlers. This is being actively worked on, see the tracking issue in Bun's GitHub repo.
The Sentry Remix SDK now officially supports Remix v2! See our Remix docs for more details.
processEvent
hook on Integration
(#9017)React.ComponentType
instead of React.FC
as withSentry
's generic type. (#9043)preprocessEvent
hook (#9034)handleErrorWithSentry
type (#9054)Work in this release contributed by @Dima-Dim, @krist7599555 and @lifeiscontent. Thank you for your contributions!
Special thanks for @isaacharrisholt for helping us implement a Vercel Edge Runtime SDK which we use under the hood for our Next.js SDK.
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 75.58 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.49 KB |
@sentry/browser - Webpack (gzipped) | 22.09 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.27 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.59 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.66 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 222.15 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.64 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.49 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.46 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 75.61 KB |
@sentry/react - Webpack (gzipped) | 22.12 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 93.49 KB |
@sentry/nextjs Client - Webpack (gzipped) | 51.07 KB |
Published by getsentry-bot about 1 year ago
This is fully backwards compatible with previously recorded replays. Only breaking change is that we will not be masking aria-label
by default. This is to better support searching by clicks. Another issue is there is about a 13% bundle size increase, however this comes with improved performance and improved replay fidelity especially in regards to web components.
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 84.27 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.5 KB |
@sentry/browser - Webpack (gzipped) | 22.09 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 78.69 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.61 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.67 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 254.08 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.66 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.5 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.48 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 84.29 KB |
@sentry/react - Webpack (gzipped) | 22.12 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 102.22 KB |
@sentry/nextjs Client - Webpack (gzipped) | 51.07 KB |
Published by getsentry-bot about 1 year ago
This is fully backwards compatible with previously recorded replays. Only breaking change is that we will not be masking aria-label
by default. This is to better support searching by clicks. Another issue is there is about a 13% bundle size increase, however this comes with improved performance and improved replay fidelity especially in regards to web components.
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 84.09 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.32 KB |
@sentry/browser - Webpack (gzipped) | 21.92 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 78.61 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.52 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.6 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 253.77 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.35 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.19 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.4 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 84.12 KB |
@sentry/react - Webpack (gzipped) | 21.95 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 102.02 KB |
@sentry/nextjs Client - Webpack (gzipped) | 50.89 KB |
Published by getsentry-bot about 1 year ago
This release introduces a new set of top level APIs for the Performance Monitoring SDKs. These aim to simplify creating spans and reduce the boilerplate needed for performance instrumentation. The three new methods introduced are Sentry.startSpan
, Sentry.startInactiveSpan
, and Sentry.startSpanManual
. These methods are available in the browser and node SDKs.
Sentry.startSpan
wraps a callback in a span. The span is automatically finished when the callback returns. This is the recommended way to create spans.
// Start a span that tracks the duration of expensiveFunction
const result = Sentry.startSpan({ name: 'important function' }, () => {
return expensiveFunction();
});
// You can also mutate the span wrapping the callback to set data or status
Sentry.startSpan({ name: 'important function' }, (span) => {
// span is undefined if performance monitoring is turned off or if
// the span was not sampled. This is done to reduce overhead.
span?.setData('version', '1.0.0');
return expensiveFunction();
});
If you don't want the span to finish when the callback returns, use Sentry.startSpanManual
to control when the span is finished. This is useful for event emitters or similar.
// Start a span that tracks the duration of middleware
function middleware(_req, res, next) {
return Sentry.startSpanManual({ name: 'middleware' }, (span, finish) => {
res.once('finish', () => {
span?.setHttpStatus(res.status);
finish();
});
return next();
});
}
Sentry.startSpan
and Sentry.startSpanManual
create a span and make it active for the duration of the callback. Any spans created while this active span is running will be added as a child span to it. If you want to create a span without making it active, use Sentry.startInactiveSpan
. This is useful for creating parallel spans that are not related to each other.
const span1 = Sentry.startInactiveSpan({ name: 'span1' });
someWork();
const span2 = Sentry.startInactiveSpan({ name: 'span2' });
moreWork();
const span3 = Sentry.startInactiveSpan({ name: 'span3' });
evenMoreWork();
span1?.finish();
span2?.finish();
span3?.finish();
BeforeFinishCallback
type (#8999)LinkedErrors
integration runs before all event processors (#8956)org
, project
and url
as args to upload script (#8985)ignoreErrors
(#8986)pg
spans (#8993)useRoutes
(#8998)glob
to Remix SDK dependencies. (#8963)handleRecordingEmit
aborts when event is not added (#8938)Work in this release contributed by @Duncanxyz and @malay44. Thank you for your contributions!
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 75.39 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.32 KB |
@sentry/browser - Webpack (gzipped) | 21.92 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.17 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.51 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.59 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.8 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 86.33 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 61.18 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.39 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 75.42 KB |
@sentry/react - Webpack (gzipped) | 21.95 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 93.28 KB |
@sentry/nextjs Client - Webpack (gzipped) | 50.89 KB |
Published by getsentry-bot about 1 year ago
BroadcastChannel
and SharedWorker
to TryCatch EventTargets (#8943)name
to Span
(#8949)ServerRuntimeClient
(#8930)span.finish()
works as expected (#8947)Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 75.35 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.24 KB |
@sentry/browser - Webpack (gzipped) | 21.84 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 69.87 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 28.18 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 20.18 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 220.81 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 85.09 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 59.73 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 31.08 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 75.37 KB |
@sentry/react - Webpack (gzipped) | 21.88 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 93.23 KB |
@sentry/nextjs Client - Webpack (gzipped) | 50.81 KB |