Takaro - v0.4.11
    Preparing search index...

    Function withMonitor

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

      Type Parameters

      • T

      Parameters

      • monitorSlug: string

        The distinct slug of the monitor.

      • callback: () => T
      • OptionalupsertMonitorConfig: MonitorConfig

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

      Returns T