Important Changes
- **feat(sveltekit): Auto-wrap `load` functions with proxy module (7994)**
`sentry/sveltekit` now auto-wraps `load` functions in
* `+(page|layout).(ts|js)` files (universal loads)
* `+(page|layout).server.(ts|js)` files (server-only loads)
This means that you don't have to manually add the `wrapLoadWithSentry` and `wrapServerLoadWithSentry` functions around your load functions. The SDK will not interfere with already wrapped `load` functions.
For more details, take a look at the [Readme](https://github.com/getsentry/sentry-javascript/blob/develop/packages/sveltekit/README.md#configure-auto-instrumentation)
- **chore(angular): Upgrade `peerDependencies` to Angular 16 (8035)**
We now officially support Angular 16 in `sentry/angular-ivy`.
Note that `sentry/angular` _does not_ support Angular 16.
- **feat(node): Add ability to send cron monitor check ins (8039)**
**Note: This release contains a bug with generating cron monitors. We recommend you upgrade the JS SDK to 7.51.1 or above to use cron monitoring functionality**
This release adds [Sentry cron monitoring](https://docs.sentry.io/product/crons/) support to the Node SDK.
Check-in monitoring allows you to track a job's progress by completing two check-ins: one at the start of your job and another at the end of your job. This two-step process allows Sentry to notify you if your job didn't start when expected (missed) or if it exceeded its maximum runtime (failed).
ts
const Sentry = require('sentry/node');
// 🟡 Notify Sentry your job is running:
const checkInId = Sentry.captureCheckIn({
monitorSlug: '<monitor-slug>',
status: 'in_progress',
});
// Execute your scheduled task here...
// 🟢 Notify Sentry your job has completed successfully:
Sentry.captureCheckIn({
// make sure you pass in the checkInId generated by the first call to captureCheckIn
checkInId,
monitorSlug: '<monitor-slug>',
status: 'ok',
});
If your job execution fails, you can notify Sentry about the failure:
javascript
// 🔴 Notify Sentry your job has failed:
Sentry.captureCheckIn({
checkInId,
monitorSlug: '<monitor-slug>',
status: 'error',
});
Additional Features and Fixes
- feat(browser): Export makeMultiplexedTransport from browser SDK (8012)
- feat(node): Add `http.method` to node http spans (7991)
- feat(tracing): add body size for fetch requests (7935)
- feat(tracing): Use http.method for span data (7990)
- fix(integrations): Handle windows paths with no prefix or backslash prefix in `RewriteFrames` (7995)
- fix(node): Mark stack frames with url protocol as in-app frames (8008)
- fix(remix): Export `Integration` type declaration as union type (8016)
- fix(replay): Do not add replay_id to DSC while buffering (8020)
- fix(tracing): Don't set method multiple times (8014)
- fix(utils): Normalize `undefined` to `undefined` instead of `"[undefined]"` (8017)
Work in this release contributed by srubin and arjenbrandenburgh. Thank you for your contributions!