Skip to content

Commit 37cd27a

Browse files
committed
feat(telemetry): include subgraph_count in run_button_clicked event
1 parent 835c87d commit 37cd27a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ export class MixpanelTelemetryProvider implements TelemetryProvider {
174174
subscribe_to_run: options?.subscribe_to_run || false,
175175
workflow_type: executionContext.is_template ? 'template' : 'custom',
176176
workflow_name: executionContext.workflow_name ?? 'untitled',
177-
total_node_count: executionContext.total_node_count
177+
total_node_count: executionContext.total_node_count,
178+
subgraph_count: executionContext.subgraph_count
178179
}
179180

180181
this.trackEvent(TelemetryEvents.RUN_BUTTON_CLICKED, runButtonProperties)

src/platform/telemetry/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface RunButtonProperties {
4343
workflow_type: 'template' | 'custom'
4444
workflow_name: string
4545
total_node_count: number
46+
subgraph_count: number
4647
}
4748

4849
/**

0 commit comments

Comments
 (0)