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

x/sentry/index.mjs>withMonitor

The Official Sentry Deno SDK
Latest
function withMonitor
import { withMonitor } from "https://deno.land/x/sentry@8.37.1/index.mjs";

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