fix(editor): Add telemetry to Insights (#14511)

This commit is contained in:
Csaba Tuncsik
2025-04-10 12:46:49 +02:00
committed by GitHub
parent 313cfec74d
commit 2fb970aaa1
4 changed files with 56 additions and 7 deletions

View File

@@ -371,6 +371,9 @@ const saveSettings = async () => {
void externalHooks.run('workflowSettings.saveSettings', { oldSettings });
telemetry.track('User updated workflow settings', {
workflow_id: workflowsStore.workflowId,
// null and undefined values are removed from the object, but we need the keys to be there
time_saved: workflowSettings.value.timeSavedPerExecution ?? '',
error_workflow: workflowSettings.value.errorWorkflow ?? '',
});
};