Skip to content

Commit 3661c15

Browse files
authored
[One workflow][Telemetry] input as jsonSchema (elastic#258515)
Input count was consistently reported as 0. The extraction logic assumed the old array-like structure, but the input is now always converted to JSON Schema.
1 parent 4e53afe commit 3661c15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/platform/plugins/shared/workflows_execution_engine/server/lib/telemetry/utils/extract_workflow_metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function extractWorkflowMetadata(
185185
const hasAlertTriggers = triggers.some((trigger) => trigger?.type === 'alert');
186186

187187
// Count inputs
188-
const inputCount = Array.isArray(workflow.inputs) ? workflow.inputs.length : 0;
188+
const inputCount = Object.keys(workflow.inputs?.properties ?? {}).length;
189189

190190
// Extract settings
191191
const enabled = Boolean(workflow.enabled);

0 commit comments

Comments
 (0)