You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## DESCRIBE YOUR PR
Moved the SentryCron decorator details to a new include file for better
organization. Updated the main guide to reference this new include,
ensuring clarity and maintainability of the documentation.
Co-authored-by: Paul Jaffre <jaffrepaul@gmail.com>
The `@SentryCron` decorator is available from version `@sentry/nestjs` 8.16.0 and up.
3
+
</Alert>
4
+
5
+
The NestJS SDK includes a `@SentryCron` decorator that can be used to augment the native NestJS `@Cron` decorator to send check-ins to Sentry before and after each cron job run.
6
+
7
+
To get started, import `SentryCron` from `@sentry/nestjs` and use it to decorate a cron job function in your NestJS application.
8
+
9
+
<Alert>
10
+
The `@SentryCron` decorator needs to be applied after the `@Cron` decorator, or else the instrumentation does not work.
0 commit comments