@sentry/tracing
7.120.4 ยท 29 Jul 2025MIT1.8M / weekRepositoryHomepagenpmAtom feed
7.120.4 is the newest release of 7.x.
In short
3 new6 fixed1 changed1 internal
Release note
Important Changes
core: Add cron monitor wrapper helper
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',
},
);Other Changes
nextjs: Instrument SSR page components
nextjs: Trace errors in page component SSR
nextjs: Instrument route handlers with
jsxandtsxfile extensionsnextjs: Trace with performance disabled
replay: Ensure
replay_idis not added to DSC if session expiredreplay: Remove unused parts of pako from build
serverless: Don't mark all errors as unhandled
tracing-internal: Fix case when middleware contain array of routes with special chars as @
meta(nextjs): Bump peer deps for Next.js 14
Work in this release contributed by @LubomirIgonda1. Thank you for your contribution!
Bundle size
| 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 |