From e062d284f306ababc531e3f761ec717f3ba0b191 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Tue, 20 Jul 2021 13:06:32 -0400 Subject: [PATCH] [ws-manmager] Remove span logs from WorkspaceReadyProbe --- components/ws-manager/pkg/manager/probe.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/ws-manager/pkg/manager/probe.go b/components/ws-manager/pkg/manager/probe.go index c476f8bffe320d..94dd58e7c55cd0 100644 --- a/components/ws-manager/pkg/manager/probe.go +++ b/components/ws-manager/pkg/manager/probe.go @@ -78,25 +78,21 @@ func (p *WorkspaceReadyProbe) Run(ctx context.Context) WorkspaceProbeResult { return WorkspaceProbeStopped } - span.LogKV("event", "probe start") resp, err := client.Get(p.readyURL) if err != nil { urlerr, ok := err.(*url.Error) if !ok || !urlerr.Timeout() { - span.LogKV("response", "error") log.WithError(err).Debug("got a non-timeout error during workspace probe") time.Sleep(p.RetryDelay) continue } // we've timed out - do not log this as it would spam the logs for no good reason - span.LogKV("response", "timeout") continue } resp.Body.Close() if resp.StatusCode != http.StatusOK { - span.LogKV("response", resp.StatusCode) log.WithField("url", p.readyURL).WithField("status", resp.StatusCode).Debug("workspace did not respond to ready probe with OK status") time.Sleep(p.RetryDelay) continue