Alerting: Pass loggers into SchedulerCfg and ManagerCfg. (#75158)

This commit is contained in:
Steve Simpson
2023-09-20 15:07:02 +02:00
committed by GitHub
parent e3eb4a3590
commit 894f420014
9 changed files with 26 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/stretchr/testify/mock"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/infra/tracing"
"github.com/grafana/grafana/pkg/services/annotations"
"github.com/grafana/grafana/pkg/services/ngalert/eval"
@@ -28,6 +29,7 @@ func BenchmarkProcessEvalResults(b *testing.B) {
Historian: hist,
MaxStateSaveConcurrency: 1,
Tracer: tracing.InitializeTracerForTest(),
Log: log.New("ngalert.state.manager"),
}
sut := state.NewManager(cfg)
now := time.Now().UTC()