Skip to content

Commit dc5b77a

Browse files
Backport #6493 (#6498)
Adds telemetry for custom_node_count tracking on run button clicked as well. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6498-Backport-6493-29e6d73d365081f88deae824af05c278) by [Unito](https://www.unito.io)
1 parent 83b0d04 commit dc5b77a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ export class MixpanelTelemetryProvider implements TelemetryProvider {
313313
subscribe_to_run: options?.subscribe_to_run || false,
314314
workflow_type: 'custom',
315315
workflow_name: 'untitled',
316+
custom_node_count: 0,
316317
total_node_count: 0,
317318
subgraph_count: 0,
318319
has_api_nodes: false,
@@ -327,6 +328,7 @@ export class MixpanelTelemetryProvider implements TelemetryProvider {
327328
subscribe_to_run: options?.subscribe_to_run || false,
328329
workflow_type: executionContext.is_template ? 'template' : 'custom',
329330
workflow_name: executionContext.workflow_name ?? 'untitled',
331+
custom_node_count: executionContext.custom_node_count,
330332
total_node_count: executionContext.total_node_count,
331333
subgraph_count: executionContext.subgraph_count,
332334
has_api_nodes: executionContext.has_api_nodes,

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+
custom_node_count: number
4647
subgraph_count: number
4748
has_api_nodes: boolean
4849
api_node_names: string[]

0 commit comments

Comments
 (0)