Skip to content
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

Add telemetry to toolbar buttons #8375

Open
1 task
njmulsqb opened this issue Mar 1, 2024 · 1 comment
Open
1 task

Add telemetry to toolbar buttons #8375

njmulsqb opened this issue Mar 1, 2024 · 1 comment

Comments

@njmulsqb
Copy link
Contributor

njmulsqb commented Mar 1, 2024

Is your feature request related to a problem? Please describe.

N/A

Describe the solution you'd like

To de-clutter the toolbar ZAP team has decided to add telemetry to the toolbar buttons to know its usage and better decide which buttons receive the most/least usage.

Describe alternatives you've considered

Google group discussion thread: https://groups.google.com/g/zaproxy-develop/c/pjTLqdEaTlM/m/0gRkYDQTAQAJ

Screenshots

No response

Additional context

No response

Would you like to help fix this issue?

  • Yes
@psiinon
Copy link
Member

psiinon commented Mar 4, 2024

To collect stats about something like a menu click you just need to add a line like this in the relevant place:

Stats.incCounter("stats.ui.topmenu.open");

Note that the stats uploaded are defined in ExtensionCallHome.StatsPredicate
so that would need to be change to add || key.startsWith("stats.ui.")

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

No branches or pull requests

3 participants