Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.d.ts>withMonitor

The Official Sentry Deno SDK
Latest
function withMonitor
import { withMonitor } from "https://deno.land/x/sentry@8.39.0-beta.0/index.d.ts";

Wraps a callback with a cron monitor check in. The check in will be sent to Sentry when the callback finishes.

Parameters

monitorSlug: CheckIn["monitorSlug"]

The distinct slug of the monitor.

callback: () => T

An optional object that describes a monitor config. Use this if you want to create a monitor automatically when sending a check in.

optional
upsertMonitorConfig: MonitorConfig