feat(core): Workflow Execution Statistics (#4200)
Add recording and reporting of workflow execution statistics
This commit is contained in:
@@ -477,4 +477,25 @@ export class InternalHooksClass implements IInternalHooksClass {
|
||||
}): Promise<void> {
|
||||
return this.telemetry.track('cnr package deleted', updateData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execution Statistics
|
||||
*/
|
||||
async onFirstProductionWorkflowSuccess(data: {
|
||||
user_id: string;
|
||||
workflow_id: string | number;
|
||||
}): Promise<void> {
|
||||
return this.telemetry.track('Workflow first prod success', data, { withPostHog: true });
|
||||
}
|
||||
|
||||
async onFirstWorkflowDataLoad(data: {
|
||||
user_id: string;
|
||||
workflow_id: string | number;
|
||||
node_type: string;
|
||||
node_id: string;
|
||||
credential_type?: string;
|
||||
credential_id?: string;
|
||||
}): Promise<void> {
|
||||
return this.telemetry.track('Workflow first data fetched', data, { withPostHog: true });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user