feat(tracking): namespace PostHog events with cli: prefix#465
Merged
Conversation
Apply a "cli:" prefix to event names sent to PostHog only, so CLI events are distinct from other surfaces (app:/hub:/registry:) in the shared project. Mixpanel keeps the bare legacy names for stream continuity. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughPostHog event names are now prefixed with ChangesPostHog Event Prefixing
Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #465 +/- ##
=======================================
Coverage 83.25% 83.25%
=======================================
Files 45 45
Lines 6801 6802 +1
=======================================
+ Hits 5662 5663 +1
Misses 1139 1139
🚀 New features to boost your workflow:
|
bigcat88
approved these changes
May 29, 2026
skishore23
added a commit
that referenced
this pull request
Jun 11, 2026
…nto the run/ package + single-client architecture Upstream (dffa5c1..a392f55) carried five telemetry/tracking commits; most of #461/#463 was already on this branch, so the merge mainly ports #465 and #468 into our architecture: - PostHog dual-send + lifecycle events (#461): already present in our tracking.py (_dispatch fan-out) and cmdline.py run lifecycle; conflicts resolved to our superset (keeps _ensure_user_id(persist=), submit_feedback, submit_agent_review, _consent_enabled). - DO_NOT_TRACK / COMFY_NO_TELEMETRY (#463): already present; kept ours. - cli: event prefix (#465): took upstream's POSTHOG_EVENT_PREFIX in tracking.py PostHogProvider.capture + upstream's prefix tests in tests/comfy_cli/test_tracking_providers.py. - Comfy-Usage-Source header (#468): run.py was deleted here, so the header + extra_data.comfy_usage_source landed in comfy_cli/command/run/execution.py (WorkflowExecution.queue) and comfy_cli/comfy_client.py (Client._request header on every local/cloud request, submit_prompt extra_data); generate/client.py auto-merged upstream's header. Adapted tests/comfy_cli/cloud/test_client.py extra_data assertions accordingly. - SOC2 unreviewed-merge detector (#464) + pytest.yml codecov bump: taken from upstream as-is. - uv.lock: took upstream then regenerated with `uv lock` (posthog already a dependency here). - Upstream's non-TTY auto-consent assertion in test_tracking.py kept at our deliberate behavior (non-interactive sessions do NOT auto-enable tracking). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applies a
cli:prefix to event names sent to PostHog only, so CLI events stay distinct from other surfaces (app:/hub:/registry:) in the shared project. Mixpanel continues to receive the bare legacy event names, preserving continuity for its existing streams.