-
Couldn't load subscription status.
- Fork 55
[WIP] Add anonymous metrics tracking (RFC - API not yet implemented) #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stbenjam The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
thanks, this is great! dropped some feedback. |
9febe2e to
6b9f2e7
Compare
|
The hooks approach works, but requires the user to install the plugin. |
Installs a `UserPromptSubmit` hook to look for slash commands, and sends
them to our anonymous metrics usage tracking service.
Example of what's sent:
```
[2025-10-21T14:33:53+00:00Z] Sending metrics: {"type": "slash_command", "name": "ci:ask-sippy", "engine": "claude", "version": "1.0", "timestamp": "2025-10-21T14:33:53+00:00Z", "session_id": "abbba331-eeff-41d1-89d5-b57f206defb5", "os": "darwin", "mac": "9ff1f8981086488424e994a57a50789e23a996b03294ec44bb5a18b428dce144", "prompt_length": 25}
```
|
This sounds like more work than just installing the metrics plugin (more or less a one-liner), as teams would have to clone ai-helpers vs. consuming it from github, setup trust, etc right? |
|
Ah - that wasn't how I was thinking it could be used. I'm not sure team members would have to clone the I think you can specify plugins e.g in team owned repos, so one person PRs these changes to This way, If I'm reading the docs right you can opt in a repository vs per user? I'm skimming https://skywork.ai/blog/claude-code-plugin-standardization-team-guide/ but something like |
|
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Mock-up for collecting anonymous usage metrics on AI helper commands. Backend API isn't implemented yet.
Installs a
UserPromptSubmithook to look for slash commands, and sends them to our anonymous metrics usage tracking service.The user has to opt-in to the plugin to make this work, though.
Example of what's sent: