mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Log Context: Add feature tracking of limit change (#67966)
* add feature tracking of load more * Update public/app/features/logs/components/log-context/LogRowContextModal.tsx Co-authored-by: Matias Chomicki <matyax@gmail.com> * fix condition --------- Co-authored-by: Matias Chomicki <matyax@gmail.com>
This commit is contained in:
parent
17a3c0c101
commit
0fc9a47779
@ -180,7 +180,14 @@ export const LogRowContextModal: React.FunctionComponent<LogRowContextModalProps
|
||||
|
||||
const onChangeLimitOption = (option: SelectableValue<number>) => {
|
||||
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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user