dependabot npm(deps): bump @sentry/node from 7.118.0 to 8.16.0
Bumps @sentry/node from 7.118.0 to 8.16.0.
Release notes
Sourced from @sentry/node's releases.
8.16.0
Important Changes
- feat(nextjs): Use spans generated by Next.js for App Router (#12729)
Previously, the
@sentry/nextjsSDK automatically recorded spans in the form of transactions for each of your top-level server components (pages, layouts, ...). This approach had a few drawbacks, the main ones being that traces didn't have a root span, and more importantly, if you had data stream to the client, its duration was not captured because the server component spans had finished before the data could finish streaming.With this release, we will capture the duration of App Router requests in their entirety as a single transaction with server component spans being descendants of that transaction. This means you will get more data that is also more accurate. Note that this does not apply to the Edge runtime. For the Edge runtime, the SDK will emit transactions as it has before.
Generally speaking, this change means that you will see less transactions and more spans in Sentry. You will no longer receive server component transactions like
Page Server Component (/path/to/route)(unless using the Edge runtime), and you will instead receive transactions for your App Router SSR requests that look likeGET /path/to/route.If you are on Sentry SaaS, this may have an effect on your quota consumption: Less transactions, more spans.
- - feat(nestjs): Add nest cron monitoring support (#12781)
The
@sentry/nestjsSDK now includes a@SentryCrondecorator that can be used to augment the native NestJS@Crondecorator to send check-ins to Sentry before and after each cron job run:import { Cron } from '@nestjs/schedule'; import { SentryCron, MonitorConfig } from '@sentry/nestjs'; import type { MonitorConfig } from '@sentry/types'; const monitorConfig: MonitorConfig = { schedule: { type: 'crontab', value: '* * * * *', }, checkinMargin: 2, // In minutes. Optional. maxRuntime: 10, // In minutes. Optional. timezone: 'America/Los_Angeles', // Optional. }; export class MyCronService { @Cron('* * * * *') @SentryCron('my-monitor-slug', monitorConfig) handleCron() { // Your cron job logic here } }
... (truncated)
Changelog
Sourced from @sentry/node's changelog.
8.16.0
Important Changes
- feat(nextjs): Use spans generated by Next.js for App Router (#12729)
Previously, the
@sentry/nextjsSDK automatically recorded spans in the form of transactions for each of your top-level server components (pages, layouts, ...). This approach had a few drawbacks, the main ones being that traces didn't have a root span, and more importantly, if you had data stream to the client, its duration was not captured because the server component spans had finished before the data could finish streaming.With this release, we will capture the duration of App Router requests in their entirety as a single transaction with server component spans being descendants of that transaction. This means you will get more data that is also more accurate. Note that this does not apply to the Edge runtime. For the Edge runtime, the SDK will emit transactions as it has before.
Generally speaking, this change means that you will see less transactions and more spans in Sentry. You will no longer receive server component transactions like
Page Server Component (/path/to/route)(unless using the Edge runtime), and you will instead receive transactions for your App Router SSR requests that look likeGET /path/to/route.If you are on Sentry SaaS, this may have an effect on your quota consumption: Less transactions, more spans.
- - feat(nestjs): Add nest cron monitoring support (#12781)
The
@sentry/nestjsSDK now includes a@SentryCrondecorator that can be used to augment the native NestJS@Crondecorator to send check-ins to Sentry before and after each cron job run:import { Cron } from '@nestjs/schedule'; import { SentryCron, MonitorConfig } from '@sentry/nestjs'; import type { MonitorConfig } from '@sentry/types'; const monitorConfig: MonitorConfig = { schedule: { type: 'crontab', value: '* * * * *', }, checkinMargin: 2, // In minutes. Optional. maxRuntime: 10, // In minutes. Optional. timezone: 'America/Los_Angeles', // Optional. }; export class MyCronService { @Cron('* * * * *') @SentryCron('my-monitor-slug', monitorConfig) handleCron() { // Your cron job logic here } } </tr></table>
... (truncated)
Commits
-
037516arelease: 8.16.0 -
0ffd1ffMerge pull request #12831 from getsentry/prepare-release/8.16.0 -
d9c6dd2meta(changelog): Update changelog for 8.16.0 -
6da0728build(nuxt): Add nuxt to craft (#12821) -
47e1b7efeat(nuxt): Add server error hook (#12796) -
0952ec4ci: Small adaptions to external contributor workflow (#12828) -
a5ea680fix: Apply stack frame metadata before event processors (#12799) -
580e6a4feat(nestjs): Add nest cron monitoring support (#12781) -
9b5cf26fix(node): EnsureautoSessionTrackingis enabled by default (#12790) -
25db805test(loader): Update Loader Script to latest (#12764) - Additional commits viewable in compare view