diff --git a/public/app/features/logs/components/log-context/LogRowContextModal.tsx b/public/app/features/logs/components/log-context/LogRowContextModal.tsx index 411b725c2fc..5de66b363f6 100644 --- a/public/app/features/logs/components/log-context/LogRowContextModal.tsx +++ b/public/app/features/logs/components/log-context/LogRowContextModal.tsx @@ -180,7 +180,14 @@ export const LogRowContextModal: React.FunctionComponent) => { setLoadMoreOption(option); - setLimit(option.value!); + if (option.value) { + setLimit(option.value); + reportInteraction('grafana_explore_logs_log_context_load_more_clicked', { + datasourceType: row.datasourceType, + logRowUid: row.uid, + new_limit: option.value, + }); + } }; const [{ loading }, fetchResults] = useAsyncFn(async () => {