logs: scanning: add tracking (#71031)

* logs: scanning: add tracking

* only report start-click when it is really doing it

Co-authored-by: Matias Chomicki <matyax@gmail.com>

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
pull/71285/head
Gábor Farkas 2 years ago committed by GitHub
parent 1945f2b64e
commit 8f2f6d63eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/features/explore/Logs/Logs.tsx

@ -282,6 +282,10 @@ class UnthemedLogs extends PureComponent<Props, State> {
event.preventDefault();
if (this.props.onStartScanning) {
this.props.onStartScanning();
reportInteraction('grafana_explore_logs_scanning_button_clicked', {
type: 'start',
datasourceType: this.props.datasourceType,
});
}
};

Loading…
Cancel
Save