npm @sentry/tracing 7.76.0

latest releases: 7.100.1, 7.100.0, 7.99.0...
8 months ago

Important Changes

  • feat(core): Add cron monitor wrapper helper (#9395)

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',
  () => {
    // withCheckIn return value is same return value here
    return sendEmail();
  },
  // Optional upsert options
  {
    schedule: {
      type: 'crontab',
      value: '0 * * * *',
    },
    // 🇨🇦🫡
    timezone: 'Canada/Eastern',
  },
);

Other Changes

  • chore(angular-ivy): Allow Angular 17 in peer dependencies (#9386)
  • feat(nextjs): Instrument SSR page components (#9346)
  • feat(nextjs): Trace errors in page component SSR (#9388)
  • fix(nextjs): Instrument route handlers with jsx and tsx file extensions (#9362)
  • fix(nextjs): Trace with performance disabled (#9389)
  • fix(replay): Ensure replay_id is not added to DSC if session expired (#9359)
  • fix(replay): Remove unused parts of pako from build (#9369)
  • fix(serverless): Don't mark all errors as unhandled (#9368)
  • fix(tracing-internal): Fix case when middleware contain array of routes with special chars as @ (#9375)
  • meta(nextjs): Bump peer deps for Next.js 14 (#9390)

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

Don't miss a new tracing release

NewReleases is sending notifications on new releases.