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>
This commit is contained in:
Gábor Farkas 2023-07-10 13:50:18 +02:00 committed by GitHub
parent 1945f2b64e
commit 8f2f6d63eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});
}
};