Skip to content

Commit 24f10f7

Browse files
Update internal/mode/static/telemetry/collector.go
Co-authored-by: Kate Osborn <[email protected]>
1 parent 47c2fcd commit 24f10f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mode/static/telemetry/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (c DataCollectorImpl) Collect(ctx context.Context) (Data, error) {
104104

105105
replicaSet, err := getPodReplicaSet(ctx, c.cfg.K8sClientReader, c.cfg.PodNSName)
106106
if err != nil {
107-
return Data{}, fmt.Errorf("failed to collect pod/replica set: %w", err)
107+
return Data{}, fmt.Errorf("failed to get replica set for pod %s: %w", c.cfg.PodNSName, err)
108108
}
109109

110110
replicaCount, err := getReplicas(replicaSet)

0 commit comments

Comments
 (0)