mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 15:52:23 +08:00
Tracing: Use tracing.InitializeTracerForTest (#75479)
This commit is contained in:

committed by
GitHub

parent
af8a46adbb
commit
0128d0403f
@ -251,6 +251,6 @@ func middlewareScenario(t *testing.T, desc string, fn scenarioFunc, cbs ...func(
|
||||
func getContextHandler(t *testing.T, cfg *setting.Cfg, authnService authn.Service) *contexthandler.ContextHandler {
|
||||
t.Helper()
|
||||
|
||||
tracer := tracing.NewFakeTracer()
|
||||
tracer := tracing.InitializeTracerForTest()
|
||||
return contexthandler.ProvideService(cfg, tracer, featuremgmt.WithFeatures(), authnService)
|
||||
}
|
||||
|
Reference in New Issue
Block a user