dependabot npm(deps): bump @sentry/node from 7.47.0 to 7.48.0
Bumps @sentry/node from 7.47.0 to 7.48.0.
Release notes
Sourced from @sentry/node's releases.
7.48.0
Important Changes
- feat(node): Add
AsyncLocalStorageimplementation ofAsyncContextStrategy(#7800)
- feat(core): Extend
AsyncContextStrategyto allow reuse of existing context (#7778)- feat(core): Make
runWithAsyncContextpublic API (#7817)- feat(core): Add async context abstraction (#7753)
- feat(node): Adds
domainimplementation ofAsyncContextStrategy(#7767)- feat(node): Auto-select best
AsyncContextStrategyfor Node.js version (#7804)- feat(node): Migrate to domains used through
AsyncContextStrategy(#7779)This release switches the SDK to use
AsyncLocalStorageas the async context isolation mechanism in the SDK for Node 14+. For Node 10 - 13, we continue to use the Nodedomainstandard library, sinceAsyncLocalStorageis not supported there. Preliminary testing showed a 30% improvement in latency and rps when making the switch from domains toAsyncLocalStorageon Node 16.If you want to manually add async context isolation to your application, you can use the new
runWithAsyncContextAPI.import * as Sentry from '@sentry/node'; const requestHandler = (ctx, next) => { return new Promise((resolve, reject) => { Sentry.runWithAsyncContext(async () => { const hub = Sentry.geCurrentHub(); hub.configureScope(scope => scope.addEventProcessor(event => Sentry.addRequestDataToEvent(event, ctx.request, { include: { user: false, }, }) ) ); await next(); resolve(); }); }); };If you're manually using domains to isolate Sentry data, we strongly recommend switching to this API!
In addition to exporting
runWithAsyncContextpublicly, the SDK also uses it internally where we previously used domains.
- feat(sveltekit): Remove
withSentryViteConfig(#7789)
- feat(sveltekit): Remove SDK initialization via dedicated files (#7791)
This release removes our
withSentryViteConfigwrapper we previously instructed you to add to yourvite.config.jsfile. It is replaced Vite plugins which you simply add to your Vite config, just like thesveltekit()Vite plugins. We believe this is a more transparent and Vite/SvelteKit-native way of applying build time modifications. Here's how to use the plugins:</tr></table>
... (truncated)
Changelog
Sourced from @sentry/node's changelog.
7.48.0
Important Changes
- feat(node): Add
AsyncLocalStorageimplementation ofAsyncContextStrategy(#7800)
- feat(core): Extend
AsyncContextStrategyto allow reuse of existing context (#7778)- feat(core): Make
runWithAsyncContextpublic API (#7817)- feat(core): Add async context abstraction (#7753)
- feat(node): Adds
domainimplementation ofAsyncContextStrategy(#7767)- feat(node): Auto-select best
AsyncContextStrategyfor Node.js version (#7804)- feat(node): Migrate to domains used through
AsyncContextStrategy(#7779)This release switches the SDK to use
AsyncLocalStorageas the async context isolation mechanism in the SDK for Node 14+. For Node 10 - 13, we continue to use the Nodedomainstandard library, sinceAsyncLocalStorageis not supported there. Preliminary testing showed a 30% improvement in latency and rps when making the switch from domains toAsyncLocalStorageon Node 16.If you want to manually add async context isolation to your application, you can use the new
runWithAsyncContextAPI.import * as Sentry from '@sentry/node'; const requestHandler = (ctx, next) => { return new Promise((resolve, reject) => { Sentry.runWithAsyncContext(async () => { const hub = Sentry.geCurrentHub(); hub.configureScope(scope => scope.addEventProcessor(event => Sentry.addRequestDataToEvent(event, ctx.request, { include: { user: false, }, }) ) ); await next(); resolve(); }); }); };If you're manually using domains to isolate Sentry data, we strongly recommend switching to this API!
In addition to exporting
runWithAsyncContextpublicly, the SDK also uses it internally where we previously used domains.
- feat(sveltekit): Remove
withSentryViteConfig(#7789)
- feat(sveltekit): Remove SDK initialization via dedicated files (#7791)
This release removes our
withSentryViteConfigwrapper we previously instructed you to add to yourvite.config.jsfile. It is replaced Vite plugins which you simply add to your Vite config, just like thesveltekit()Vite plugins. We believe this is a more transparent and Vite/SvelteKit-native way of applying build time modifications. Here's how to use the plugins:
... (truncated)
Commits
-
253e16drelease: 7.48.0 -
452cef5Merge pull request #7856 from getsentry/prepare-release/7.48.0 -
2a20039meta(changelog): Update changelog for 7.48.0 -
eed0dc9ref(core): Don't pass hub torunWithAsyncContextcallback (#7850) -
970e108feat(core): Cache processed stacks for debug IDs (#7825) -
753a197chore(repo): Clean up bug report template (#7855) -
11c68d9ref(node): Remove unnecessary emitters option from async context abstraction ... -
3b3c5bdmeta: Update changelog to incorporate #7849 and #7850 (#7851) -
d54ff78feat(replay): Capture request & response headers (#7816) -
dd28a21Merge pull request #7848 from getsentry/master - Additional commits viewable in compare view