Skip to content

feat(telemetry): add CLI activation funnel events#278

Open
Gradata wants to merge 1 commit into
mainfrom
gra-2031-cli-telemetry
Open

feat(telemetry): add CLI activation funnel events#278
Gradata wants to merge 1 commit into
mainfrom
gra-2031-cli-telemetry

Conversation

@Gradata

@Gradata Gradata commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • add PostHog capture payloads for cli_install, first_rule_graduated, and rule_injected
  • include distinct_id/user_id, brain_id, agent_type, cli_version, nullable experiment_id/cohort, rule metadata, and install timing
  • wire events into CLI init/install, rule graduation, SDK recall, and hook injection paths with opt-in + graceful fire-and-forget behavior

Verification

  • python3 -m pytest tests/test_telemetry.py -q
  • env -u BRAIN_DIR -u GRADATA_BRAIN python3 -m pytest tests/test_cli.py tests/test_cli_install_agent.py tests/test_jit_inject.py tests/test_rule_graduated_events.py tests/test_import_integrity.py -q
  • ruff check changed source/test files

Paperclip: 2d5e11b2-5e31-4b69-a4b4-4106f0e2feda / GRA-2031

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Gradata, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 28 minutes and 40 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 024343b3-6812-4cf5-967c-a17dffe50c53

📥 Commits

Reviewing files that changed from the base of the PR and between 8bf23a5 and a1a326c.

📒 Files selected for processing (7)
  • Gradata/src/gradata/_telemetry.py
  • Gradata/src/gradata/brain.py
  • Gradata/src/gradata/cli.py
  • Gradata/src/gradata/enhancements/self_improvement/_graduation.py
  • Gradata/src/gradata/hooks/inject_brain_rules.py
  • Gradata/src/gradata/hooks/jit_inject.py
  • Gradata/tests/test_telemetry.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch gra-2031-cli-telemetry

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant