Skip to content

teamniteo/go-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}