Skip to main content
Module

x/sentry/index.d.ts>withMonitor

The Official Sentry Deno SDK
Go to Latest
function withMonitor
import { withMonitor } from "https://deno.land/x/sentry@7.109.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