sentrycron

package module
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package sentrycron reports github.com/robfig/cron/v3 jobs to Sentry Crons.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunc

func AddFunc(c *cron.Cron, spec, slug string, fn func() error, config *sentry.MonitorConfig) (cron.EntryID, error)

AddFunc adds fn to c with spec and reports each run as check-ins for the monitor slug. The monitor is created or updated with spec as its schedule when Sentry can represent it. config sets the other monitor fields and may be nil.

The monitor uses the cron's time zone. When that is time.Local, the IANA name comes from $TZ or /etc/localtime. If no IANA name can be found, only check-ins are sent and the monitor's schedule must be set in Sentry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL