diff --git a/public/app/features/explore/Logs.tsx b/public/app/features/explore/Logs.tsx index 41dd9d50c13..bf96418700a 100644 --- a/public/app/features/explore/Logs.tsx +++ b/public/app/features/explore/Logs.tsx @@ -313,11 +313,19 @@ class UnthemedLogs extends PureComponent { contextOpen: true, contextRow: row, }); + reportInteraction('grafana_explore_logs_log_context_opened', { + datasourceType: row.datasourceType, + logRowUid: row.uid, + }); this.onCloseContext = () => { this.setState({ contextOpen: false, contextRow: undefined, }); + reportInteraction('grafana_explore_logs_log_context_closed', { + datasourceType: row.datasourceType, + logRowUid: row.uid, + }); onClose(); }; }; diff --git a/public/app/features/logs/components/log-context/LogRowContextModal.tsx b/public/app/features/logs/components/log-context/LogRowContextModal.tsx index 92ffd38fc66..4f30b7e1657 100644 --- a/public/app/features/logs/components/log-context/LogRowContextModal.tsx +++ b/public/app/features/logs/components/log-context/LogRowContextModal.tsx @@ -14,7 +14,7 @@ import { SelectableValue, rangeUtil, } from '@grafana/data'; -import { config } from '@grafana/runtime'; +import { config, reportInteraction } from '@grafana/runtime'; import { DataQuery, TimeZone } from '@grafana/schema'; import { Icon, Button, LoadingBar, Modal, useTheme2 } from '@grafana/ui'; import { dataFrameToLogsModel } from 'app/core/logsModel'; @@ -342,6 +342,12 @@ export const LogRowContextModal: React.FunctionComponent { + reportInteraction('grafana_explore_logs_log_context_give_feedback_clicked', { + datasourceType: row.datasourceType, + logRowUid: row.uid, + }); + }} > Give feedback @@ -357,6 +363,10 @@ export const LogRowContextModal: React.FunctionComponent Open in split view