mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
feat #19: integrate sentry for event reporting
This commit is contained in:
+9
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user