we can only skip missing ziti service ids when augmenting usage with zrok details

This commit is contained in:
Michael Quigley 2023-06-16 13:51:57 -04:00
parent 4e20b35db3
commit 17a2e66cb0
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -45,12 +45,10 @@ func (a *Agent) Start() error {
select {
case event := <-a.events:
if usage, err := Ingest(event.Data()); err == nil {
if usage.AccountId != 0 || usage.EnvironmentId != 0 {
if usage.ZitiServiceId != "" {
if err := a.cache.addZrokDetail(usage); err != nil {
logrus.Errorf("unable to add zrok detail for: %v: %v", usage.String(), err)
}
} else {
logrus.Debugf("skipping zrok detail for: %v", usage.String())
}
shouldAck := true
for _, snk := range a.snks {