diff --git a/public/app/features/explore/Logs/Logs.tsx b/public/app/features/explore/Logs/Logs.tsx index 589da7b1a37..c68fc97fefc 100644 --- a/public/app/features/explore/Logs/Logs.tsx +++ b/public/app/features/explore/Logs/Logs.tsx @@ -268,6 +268,7 @@ class UnthemedLogs extends PureComponent { reportInteraction('grafana_explore_logs_visualisation_changed', { newVisualizationType: visualisation, + datasourceType: this.props.datasourceType ?? 'unknown', }); }; @@ -757,6 +758,7 @@ class UnthemedLogs extends PureComponent { panelState={this.props.panelState?.logs} theme={theme} updatePanelState={this.updatePanelState} + datasourceType={this.props.datasourceType} /> )} diff --git a/public/app/features/explore/Logs/LogsTableWrap.tsx b/public/app/features/explore/Logs/LogsTableWrap.tsx index 837c2deea66..74a3e79b87d 100644 --- a/public/app/features/explore/Logs/LogsTableWrap.tsx +++ b/public/app/features/explore/Logs/LogsTableWrap.tsx @@ -32,6 +32,7 @@ interface Props extends Themeable2 { updatePanelState: (panelState: Partial) => void; onClickFilterLabel?: (key: string, value: string, frame?: DataFrame) => void; onClickFilterOutLabel?: (key: string, value: string, frame?: DataFrame) => void; + datasourceType?: string; } export type fieldNameMeta = { @@ -239,8 +240,8 @@ export function LogsTableWrap(props: Props) { const event = { columnAction: newState ? 'add' : 'remove', columnCount: newState ? priorActiveCount + 1 : priorActiveCount - 1, + datasourceType: props.datasourceType, }; - reportInteraction('grafana_explore_logs_table_column_filter_clicked', event); } } @@ -248,6 +249,7 @@ export function LogsTableWrap(props: Props) { function searchFilterEvent(searchResultCount: number) { reportInteraction('grafana_explore_logs_table_text_search_result_count', { resultCount: searchResultCount, + datasourceType: props.datasourceType ?? 'unknown', }); }