Log Context: Add feature tracking (#66912)

add feature tracking
This commit is contained in:
Sven Grossmann
2023-04-20 15:42:44 +02:00
committed by GitHub
parent 35342a3c76
commit c903d1546f
2 changed files with 19 additions and 1 deletions
+8
View File
@@ -313,11 +313,19 @@ class UnthemedLogs extends PureComponent<Props, State> {
contextOpen: true,
contextRow: row,
});
reportInteraction('grafana_explore_logs_log_context_opened', {
datasourceType: row.datasourceType,
logRowUid: row.uid,
});
this.onCloseContext = () => {
this.setState({
contextOpen: false,
contextRow: undefined,
});
reportInteraction('grafana_explore_logs_log_context_closed', {
datasourceType: row.datasourceType,
logRowUid: row.uid,
});
onClose();
};
};