Skip to content

Commit

Permalink
Do not send userId to registry when ODO_DEBUG_TELEMETRY_FILE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Aug 19, 2022
1 parent 79a57cd commit c231803
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/segment/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c231803

Please sign in to comment.