mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-13 08:19:44 +08:00
change: add GA event for loading go plugin
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"github.com/httprunner/hrp/internal/builtin"
|
||||
"github.com/httprunner/hrp/internal/ga"
|
||||
)
|
||||
|
||||
func (p *parser) loadPlugin(path string) error {
|
||||
@@ -33,6 +34,12 @@ func (p *parser) loadPlugin(path string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// report event for loading go plugin
|
||||
go ga.SendEvent(ga.EventTracking{
|
||||
Category: "LoadGoPlugin",
|
||||
Action: "plugin.Open",
|
||||
})
|
||||
|
||||
// load plugin
|
||||
plugins, err := plugin.Open(pluginPath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user