User: Add tracing (#87028)
* Inject tracer in tests * Annotate with traces Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
This commit is contained in:
@@ -87,7 +87,10 @@ func populateDB(t *testing.T, db db.DB, cfg *setting.Cfg) {
|
||||
t.Helper()
|
||||
|
||||
orgService, _ := orgimpl.ProvideService(db, cfg, quotatest.New(false, nil))
|
||||
userSvc, _ := userimpl.ProvideService(db, orgService, cfg, nil, nil, "atest.FakeQuotaService{}, supportbundlestest.NewFakeBundleService())
|
||||
userSvc, _ := userimpl.ProvideService(
|
||||
db, orgService, cfg, nil, nil, tracing.InitializeTracerForTest(),
|
||||
"atest.FakeQuotaService{}, supportbundlestest.NewFakeBundleService(),
|
||||
)
|
||||
|
||||
bus := bus.ProvideBus(tracing.InitializeTracerForTest())
|
||||
correlationsSvc := correlationstest.New(db, cfg, bus)
|
||||
|
||||
Reference in New Issue
Block a user