Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect errors showing in Telemetry #5561

Merged
merged 5 commits into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions internal/telemetry/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,42 +195,42 @@ func (c *Collector) BuildReport(ctx context.Context) (Report, error) {

clusterID, err := c.ClusterID(ctx)
if err != nil {
glog.Errorf("Error collecting telemetry data: ClusterID: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: ClusterID: %v", err)
}

nodes, err := c.NodeCount(ctx)
if err != nil {
glog.Errorf("Error collecting telemetry data: Nodes: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: Nodes: %v", err)
}

version, err := c.ClusterVersion()
if err != nil {
glog.Errorf("Error collecting telemetry data: K8s Version: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: K8s Version: %v", err)
}

platform, err := c.Platform(ctx)
if err != nil {
glog.Errorf("Error collecting telemetry data: Platform: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: Platform: %v", err)
}

replicas, err := c.ReplicaCount(ctx)
if err != nil {
glog.Errorf("Error collecting telemetry data: Replicas: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: Replicas: %v", err)
}

installationID, err := c.InstallationID(ctx)
if err != nil {
glog.Errorf("Error collecting telemetry data: InstallationID: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: InstallationID: %v", err)
}

secretCount, err := c.Secrets()
if err != nil {
glog.Errorf("Error collecting telemetry data: Secrets: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: Secrets: %v", err)
}
ingressCount := c.IngressCount()
ingressClassCount, err := c.IngressClassCount(ctx)
if err != nil {
glog.Errorf("Error collecting telemetry data: Ingress Classes: %v", err)
glog.V(3).Infof("Unable to collect telemetry data: Ingress Classes: %v", err)
}

policies := c.PolicyCount()
Expand Down
Loading