From 8f2f6d63ebe8df53710c0adcf40c606cbbd271d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Mon, 10 Jul 2023 13:50:18 +0200 Subject: [PATCH] logs: scanning: add tracking (#71031) * logs: scanning: add tracking * only report start-click when it is really doing it Co-authored-by: Matias Chomicki --------- Co-authored-by: Matias Chomicki --- public/app/features/explore/Logs/Logs.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/features/explore/Logs/Logs.tsx b/public/app/features/explore/Logs/Logs.tsx index 2ee6597d6ec..8a66daf0d6e 100644 --- a/public/app/features/explore/Logs/Logs.tsx +++ b/public/app/features/explore/Logs/Logs.tsx @@ -282,6 +282,10 @@ class UnthemedLogs extends PureComponent { event.preventDefault(); if (this.props.onStartScanning) { this.props.onStartScanning(); + reportInteraction('grafana_explore_logs_scanning_button_clicked', { + type: 'start', + datasourceType: this.props.datasourceType, + }); } };