Repository navigation
docs(nestjs): Document SentryCron monitor config from @Cron - #19782
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
wedamija
requested review from
a team,
logaretm and
stephanie-anderson
and removed request for
a team
October 2, 2026 21:57
Co-Authored-By: Claude <[email protected]>
wedamija
marked this pull request as ready for review
October 2, 2026 22:29
Contributor
|
Services awaiting deployment · Rollout details Warning Rollouts can't watch this change after it deploys: every data source for this team needs to be signed in again, so a check has no telemetry to read. Sign in to your data sources, or ask a team admin to.
Mention |
Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
coolguyzone
approved these changes
Oct 7, 2026
coolguyzone
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Please address or resolve the review bot comment before merging.
1 of 3 tasks
wedamija
marked this pull request as draft
October 23, 2026 21:12
isaacs
added a commit
to getsentry/sentry-javascript
that referenced
this pull request
Oct 29, 2026
Part of a series adding automatic Crons monitoring for the most-used job schedulers in each SDK. Check-ins for a monitor that doesn't exist yet are dropped, so today each monitor has to be created by hand with its schedule copied from the code. Sending the job's schedule as the monitor config lets Sentry create the monitor and keep it in sync. `@SentryCron` now sends the schedule and time zone of the method's `@Cron()` decorator with its check-ins, so Sentry creates the monitor on the first run. It's on by default; pass `fromCronDecorator: false` to send no config. A config with its own `schedule` is used as is. Monitors created this way are billed, and their schedule and time zone are overwritten from `@Cron()` on each check-in. ```ts @Cron('0 30 9 * * 1-5', { timeZone: 'Europe/Vienna' }) @SentryCron('daily-report', { checkinMargin: 2 }) async dailyReport() {} ``` Without a `timeZone`, the server's local time zone is sent. Schedules Sentry would read differently from `@nestjs/schedule` (sub-minute, numeric months, some day-field combinations, fixed UTC offsets) check in without a config. Docs: getsentry/sentry-docs#19782 --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: isaacs <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Documents that
@SentryCronnow sends the schedule and time zone of@Cronon the same method, so check-ins create the monitor. Covers the server time zone default, which schedules send no config, and thefromCronDecorator: falseopt-out.SDK change: getsentry/sentry-javascript#25013. Merge after it ships; the page marks it as available since 11.5.0, which assumes it lands in the next minor.
IS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST