From c2318032648503bbb9bdc35dfec9da12f3a9410b Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Thu, 18 Aug 2022 09:00:06 +0200 Subject: [PATCH] Do not send userId to registry when ODO_DEBUG_TELEMETRY_FILE is set --- pkg/segment/integrations.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/segment/integrations.go b/pkg/segment/integrations.go index e56fe0816ec..3ce9d706164 100644 --- a/pkg/segment/integrations.go +++ b/pkg/segment/integrations.go @@ -17,6 +17,10 @@ func getTelemetryForDevfileRegistry() (registryLibrary.TelemetryData, error) { Client: TelemetryClient, } + if GetDebugTelemetryFile() != "" { + return td, nil + } + // TODO(feloy) Get from DI cfg, err := preference.NewClient() if err != nil {