Skip to content

Commit

Permalink
feat(deno): Add docs for Deno.cron (#8733)
Browse files Browse the repository at this point in the history
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
  • Loading branch information
AbhiPrasad and getsantry[bot] committed Dec 15, 2023
1 parent 4ebb78d commit 61bb896
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions src/platform-includes/crons/setup/javascript.deno.mdx
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" />
4 changes: 2 additions & 2 deletions src/platforms/javascript/common/crons/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ supported:

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.

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

## Requirements

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

</PlatformSection>

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

## Requirements

Expand Down

1 comment on commit 61bb896

@vercel
Copy link

@vercel vercel bot commented on 61bb896 Dec 15, 2023

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

Please sign in to comment.