refactor: rename ga package to sdk

This commit is contained in:
debugtalk
2022-03-25 15:57:25 +08:00
parent 3eab7d470f
commit ceb290dd49
9 changed files with 26 additions and 24 deletions

View File

@@ -8,8 +8,9 @@ import (
"syscall"
"github.com/httprunner/funplugin"
"github.com/httprunner/httprunner/hrp/internal/ga"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/hrp/internal/sdk"
)
const (
@@ -44,7 +45,7 @@ func initPlugin(path string, logOn bool) (plugin funplugin.IPlugin, err error) {
}()
// report event for initializing plugin
event := ga.EventTracking{
event := sdk.EventTracking{
Category: "InitPlugin",
Action: fmt.Sprintf("Init %s plugin", plugin.Type()),
Value: 0, // success
@@ -52,7 +53,7 @@ func initPlugin(path string, logOn bool) (plugin funplugin.IPlugin, err error) {
if err != nil {
event.Value = 1 // failed
}
go ga.SendEvent(event)
go sdk.SendEvent(event)
return
}