mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(n8n Evaluation Trigger Node): Add telemetry events (#15465)
This commit is contained in:
@@ -729,6 +729,7 @@ export class TelemetryEventRelay extends EventRelay {
|
||||
sharing_role: userRole,
|
||||
credential_type: null,
|
||||
is_managed: false,
|
||||
eval_rows_left: null,
|
||||
...TelemetryHelpers.resolveAIMetrics(workflow.nodes, this.nodeTypes),
|
||||
};
|
||||
|
||||
@@ -739,6 +740,15 @@ export class TelemetryEventRelay extends EventRelay {
|
||||
manualExecEventProperties.node_graph_string = JSON.stringify(nodeGraphResult.nodeGraph);
|
||||
}
|
||||
|
||||
nodeGraphResult?.evaluationTriggerNodeNames?.forEach((name: string) => {
|
||||
const rowsLeft =
|
||||
runData.data.resultData.runData[name]?.[0]?.data?.main?.[0]?.[0]?.json?._rowsLeft;
|
||||
|
||||
if (typeof rowsLeft === 'number') {
|
||||
manualExecEventProperties.eval_rows_left = rowsLeft;
|
||||
}
|
||||
});
|
||||
|
||||
if (runData.data.startData?.destinationNode) {
|
||||
const credentialsData = TelemetryHelpers.extractLastExecutedNodeCredentialData(runData);
|
||||
if (credentialsData) {
|
||||
|
||||
Reference in New Issue
Block a user