diff --git a/public/app/features/explore/LogsSamplePanel.tsx b/public/app/features/explore/LogsSamplePanel.tsx index 8d9d0cf949cc..0e14e0cfd827 100644 --- a/public/app/features/explore/LogsSamplePanel.tsx +++ b/public/app/features/explore/LogsSamplePanel.tsx @@ -57,13 +57,21 @@ export function LogsSamplePanel(props: Props) { return null; } + const onSplitOpen = () => { + splitOpen({ query: logSampleQueries[0], datasourceUid: datasourceInstance.uid }); + reportInteraction('grafana_explore_logs_sample_split_button_clicked', { + datasourceType: datasourceInstance?.type ?? 'unknown', + queriesCount: logSampleQueries.length, + }); + }; + return (