refactor(editor): Add telemetry for workflow history (no-changelog) (#8072)

https://linear.app/n8n/issue/PAY-1142
This commit is contained in:
Iván Ovejero
2023-12-18 16:10:45 +01:00
committed by GitHub
parent 73d400a1bf
commit 62ce962ec9
2 changed files with 9 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import { useWorkflowHistoryStore } from '@/stores/workflowHistory.store';
import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { telemetry } from '@/plugins/telemetry';
import { useRootStore } from '@/stores/n8nRoot.store';
type WorkflowHistoryActionRecord = {
[K in Uppercase<WorkflowHistoryActionTypes[number]>]: Lowercase<K>;
@@ -76,6 +77,7 @@ const evaluatedPruneTime = computed(() => Math.floor(workflowHistoryStore.evalua
const sendTelemetry = (event: string) => {
telemetry.track(event, {
instance_id: useRootStore().instanceId,
workflow_id: route.params.workflowId,
});
};