From c7e11ba5ff10fd1dc0a268b9a30c52de5bd435eb Mon Sep 17 00:00:00 2001 From: Marco Antonio Ghiani Date: Thu, 9 Feb 2023 12:37:00 +0100 Subject: [PATCH] fix(infra): track host cloud provider on host click --- .../infra/public/services/telemetry/telemetry_client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/infra/public/services/telemetry/telemetry_client.ts b/x-pack/plugins/infra/public/services/telemetry/telemetry_client.ts index 642611001b287..66ee3220c2935 100644 --- a/x-pack/plugins/infra/public/services/telemetry/telemetry_client.ts +++ b/x-pack/plugins/infra/public/services/telemetry/telemetry_client.ts @@ -22,11 +22,11 @@ export class TelemetryClient implements ITelemetryClient { public reportHostEntryClicked = ({ hostname, - cloud_provider: cloudProvider = 'unknown', + cloud_provider: cloudProvider, }: HostEntryClickedParams) => { this.analytics.reportEvent(InfraTelemetryEventTypes.HOSTS_ENTRY_CLICKED, { hostname, - cloud_provider: cloudProvider, + cloud_provider: cloudProvider ?? 'unknown', }); };