chore(2354): added preloaded metrics metadata at first api call (#8229)

* chore(2354): added preloaded metrics metadata at first api call
This commit is contained in:
aniketio-ctrl
2025-07-06 17:09:29 +05:30
committed by GitHub
parent 8274ebfe37
commit 273452352d
6 changed files with 156 additions and 192 deletions

View File

@@ -203,17 +203,6 @@ func NewServer(config signoz.Config, signoz *signoz.SigNoz, jwt *authtypes.JWT)
&opAmpModel.AllAgents, agentConfMgr, signoz.Instrumentation,
)
orgs, err := apiHandler.Signoz.Modules.OrgGetter.ListByOwnedKeyRange(context.Background())
if err != nil {
return nil, err
}
for _, org := range orgs {
errorList := reader.PreloadMetricsMetadata(context.Background(), org.ID)
for _, er := range errorList {
zap.L().Error("failed to preload metrics metadata", zap.Error(er))
}
}
return s, nil
}