Categorygithub.com/teamniteo/go-sentry
repository
1.0.2
Repository: https://github.com/teamniteo/go-sentry.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Sentry Cron reporter

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/

Example

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
}