Add ingress telemetry support (#1763)

This commit is contained in:
Benjamin Pracht
2023-06-02 17:38:19 -07:00
committed by GitHub
parent c2ae34151c
commit e7879a46fc
5 changed files with 242 additions and 0 deletions
+4
View File
@@ -110,6 +110,7 @@ func (s *IngressService) CreateIngressWithUrlPrefix(ctx context.Context, urlPref
logger.Errorw("could not write ingress info", err)
return nil, err
}
s.telemetry.IngressCreated(ctx, info)
return info, nil
}
@@ -254,5 +255,8 @@ func (s *IngressService) DeleteIngress(ctx context.Context, req *livekit.DeleteI
}
info.State.Status = livekit.IngressState_ENDPOINT_INACTIVE
s.telemetry.IngressDeleted(ctx, info)
return info, nil
}