Package to send reports to https://sentry.io/crons/ service.
Handles stop, start and detects and sends crash too.
For more information see https://docs.sentry.io/product/crons/ and https://docs.sentry.io/product/crons/getting-started/http/
package main
import "github.com/teamniteo/go-sentry/cron"
var cronReport = cron.NewMonitor("teamniteo", "monitor-slug-or-uuid")
func main() {
cronReport.Start()
defer cronReport.Stop() // will handle crash too
// ... the rest of the stuff
}