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 anonymous usage telemetry #265

Open
mglaman opened this issue Mar 1, 2022 · 0 comments
Open

Add anonymous usage telemetry #265

mglaman opened this issue Mar 1, 2022 · 0 comments

Comments

@mglaman
Copy link
Owner

mglaman commented Mar 1, 2022

Why?

I want to know why folks use drupal-check.

Anonymous usage tracking will not answer that specific problem. But it gives this project a purpose beyond a simpler way for agencies to productize PHPStan and phpstan-drupal without contributing back or sponsoring the development of the projects.

What for?

Drupal.org currently scans all contributed extensions for deprecations. Gabor took the effort to translate the artifacts of these scans into a consumable dashboard on Acquia's developer site: https://dev.acquia.com/drupal10

What if we could augment that with a richer dataset based on real-world usages?

It'd be nice to know what contrib modules exist, but that could leak agency-specific packages. So I'd rather just upload the error messages and the Drupal core version. The Drupal core version would help with other reporting – how many folks are not yet_ on 9.3 with more deprecations in 9.4 piling on.

How?

The tracking would be opt-in and anonymous with minimal data tracking. To be honest, I don't even know how I'd achieve this!

My first thought is that there'd need to be a flag in the project's composer.json. Like extra.drupal-check.allow-reporting: true.

What would be reported:

  • The deprecated messages returned
  • Current version of Drupal via \Drupal::VERSION constant
  • If running in a CI environment or locally (detect CI environment variable only.)

The data should be publicly available. Which has me thinking of spinning up an Elasticsearch instance and a Lamba function to handle incoming data. Anyone could read from the Elasticsearch instance to build data reports.

@mglaman mglaman changed the title Add anonymous usage tracking Add anonymous usage telemetry Mar 2, 2022
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

No branches or pull requests

1 participant