Skip to content

Commit 61bb896

Browse files
feat(deno): Add docs for Deno.cron (#8733)
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 4ebb78d commit 61bb896

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Automatic Check-Ins (Recommended)
2+
3+
_requires SDK version 7.88.0 or higher_
4+
5+
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.
6+
7+
```ts
8+
import * as Sentry from "https://deno.land/x/sentry/index.mjs";
9+
10+
Sentry.init({
11+
dsn: "__DSN__",
12+
integrations: [new Sentry.DenoCron()],
13+
});
14+
```
15+
16+
## Job Monitoring
17+
18+
<Include name="javascript-crons-job-monitoring.mdx" />
19+
20+
## Check-Ins
21+
22+
<Include name="javascript-crons-checkins.mdx" />
23+
24+
## Upserting Cron Monitors
25+
26+
<Include name="javascript-crons-upsert.mdx" />

src/platforms/javascript/common/crons/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ supported:
1515

1616
Sentry Crons allows you to monitor the uptime and performance of any scheduled, recurring job. Once implemented, it'll allow you to get alerts and metrics to help you solve errors, detect timeouts, and prevent disruptions to your service.
1717

18-
<PlatformSection supported={["javascript.nextjs", "javascript.sveltekit", "javascript.remix", "javascript.astro", "javascript.bun"]}>
18+
<PlatformSection supported={["javascript.nextjs", "javascript.sveltekit", "javascript.remix", "javascript.astro", "javascript.bun", "javascript.deno"]}>
1919

2020
## Requirements
2121

@@ -25,7 +25,7 @@ Sentry Crons allows you to monitor the uptime and performance of any scheduled,
2525

2626
</PlatformSection>
2727

28-
<PlatformSection notSupported={["javascript.nextjs", "javascript.sveltekit", "javascript.remix", "javascript.astro", "javascript.bun"]}>
28+
<PlatformSection notSupported={["javascript.nextjs", "javascript.sveltekit", "javascript.remix", "javascript.astro", "javascript.bun", "javascript.deno"]}>
2929

3030
## Requirements
3131

0 commit comments

Comments
 (0)