-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deno): Add docs for
Deno.cron
(#8733)
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4ebb78d
commit 61bb896
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Automatic Check-Ins (Recommended) | ||
|
||
_requires SDK version 7.88.0 or higher_ | ||
|
||
Use the `DenoCron` integration to monitor your [`Deno.cron`](https://deno.com/blog/cron) calls and get notified when a schedule job is missed (or doesn't start when expected), if it fails due to a problem in the runtime (such as an error), or if it fails by exceeding its maximum runtime. | ||
|
||
```ts | ||
import * as Sentry from "https://deno.land/x/sentry/index.mjs"; | ||
|
||
Sentry.init({ | ||
dsn: "__DSN__", | ||
integrations: [new Sentry.DenoCron()], | ||
}); | ||
``` | ||
|
||
## Job Monitoring | ||
|
||
<Include name="javascript-crons-job-monitoring.mdx" /> | ||
|
||
## Check-Ins | ||
|
||
<Include name="javascript-crons-checkins.mdx" /> | ||
|
||
## Upserting Cron Monitors | ||
|
||
<Include name="javascript-crons-upsert.mdx" /> |
This file contains 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
61bb896
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sentry-docs – ./
docs.sentry.io
sentry-docs-git-master.sentry.dev
sentry-docs.sentry.dev