feat #19: integrate sentry for event reporting

This commit is contained in:
debugtalk
2021-11-18 18:14:02 +08:00
parent 52afe41a66
commit d306452b19
8 changed files with 165 additions and 1 deletions
+9 -1
View File
@@ -1,7 +1,15 @@
package main
import "github.com/httprunner/hrp/hrp/cmd"
import (
"time"
"github.com/getsentry/sentry-go"
"github.com/httprunner/hrp/hrp/cmd"
)
func main() {
// Flush buffered events before the program terminates.
defer sentry.Flush(2 * time.Second)
cmd.Execute()
}