From d4fe26f45f7c8ba281bc93e0f9e2d08e2a0d7a0a Mon Sep 17 00:00:00 2001 From: "Pavel Tumik @ GitPod" <18602811+sagor999@users.noreply.github.com> Date: Mon, 12 Sep 2022 14:21:56 -0700 Subject: [PATCH] [ws-manager] add policy key to tracing in StopWorkspace call --- components/ws-manager/pkg/manager/manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/ws-manager/pkg/manager/manager.go b/components/ws-manager/pkg/manager/manager.go index 24a200ef456f71..0637a1767bdd25 100644 --- a/components/ws-manager/pkg/manager/manager.go +++ b/components/ws-manager/pkg/manager/manager.go @@ -733,8 +733,10 @@ func (m *Manager) StopWorkspace(ctx context.Context, req *api.StopWorkspaceReque gracePeriod := stopWorkspaceNormallyGracePeriod if req.Policy == api.StopWorkspacePolicy_IMMEDIATELY { + span.LogKV("policy", "immediately") gracePeriod = stopWorkspaceImmediatelyGracePeriod } else if req.Policy == api.StopWorkspacePolicy_ABORT { + span.LogKV("policy", "abort") gracePeriod = stopWorkspaceImmediatelyGracePeriod err = m.markWorkspace(ctx, req.Id, addMark(abortRequestAnnotation, util.BooleanTrueString)) if err != nil {