Skip to content

feat: unified CLI telemetry event#1133

Merged
patrikbraborec merged 4 commits into
masterfrom
fix/dual-command-telemetry-events
May 19, 2026
Merged

feat: unified CLI telemetry event#1133
patrikbraborec merged 4 commits into
masterfrom
fix/dual-command-telemetry-events

Conversation

@patrikbraborec
Copy link
Copy Markdown
Contributor

@patrikbraborec patrikbraborec commented May 14, 2026

Summary

  • emit the new unified cli_command telemetry event for every CLI command
  • keep emitting the legacy per-command events such as cli_command_push for backward compatibility
  • send both telemetry events independently with Promise.allSettled so one failure does not block the other
  • add focused coverage for both event names and the shared commandString payload

Closes #1132

Testing

  • corepack pnpm vitest run test/local/lib/command-framework/telemetry-event-name.test.ts
  • git diff --check

Note: corepack pnpm tsc --noEmit currently fails on an unrelated existing type error in src/lib/consts.ts: META_ORIGINS.CI is not present in the installed @apify/consts type.


Open with GitKraken

@github-actions github-actions Bot added this to the 140th sprint - DX team milestone May 14, 2026
@github-actions github-actions Bot added t-dx Issues owned by the DX team. tested Temporary label used only programatically for some analytics. labels May 14, 2026
@patrikbraborec patrikbraborec force-pushed the fix/dual-command-telemetry-events branch from 64972d9 to 2662ac7 Compare May 14, 2026 11:58
Copy link
Copy Markdown
Contributor

@DaveHanns DaveHanns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@l2ysho
Copy link
Copy Markdown
Contributor

l2ysho commented May 19, 2026

I remember, there was some discussion about dropping a legacy right away, I just cant find it now, probably in archived channel 🙂 Should we mention this somewhere in Issue/PR?

Comment thread test/local/lib/command-framework/telemetry-event-name.test.ts
Copy link
Copy Markdown
Contributor

@l2ysho l2ysho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job, left some nits, nonblocking

Copy link
Copy Markdown
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the PR title to match our structure and drop the legacy mention since that's gone now

Comment thread src/lib/hooks/telemetry/trackEvent.ts Outdated
Co-authored-by: Richard Solar <solar.richard@gmail.com>
@patrikbraborec patrikbraborec changed the title Send unified and legacy CLI telemetry events fix: send unified CLI telemetry events May 19, 2026
@vladfrangu vladfrangu changed the title fix: send unified CLI telemetry events feat: unified CLI telemetry event May 19, 2026
@patrikbraborec patrikbraborec merged commit 985bb18 into master May 19, 2026
23 checks passed
@patrikbraborec patrikbraborec deleted the fix/dual-command-telemetry-events branch May 19, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-dx Issues owned by the DX team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure legacy CLI command telemetry is sent independently

5 participants