src/go/collectors/go.d.plugin/agent/agent.go
Method Agent.run
has 69 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (a *Agent) run(ctx context.Context) {
a.Info("instance is started")
defer func() { a.Info("instance is stopped") }()
cfg := a.loadPluginConfig()