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 analytics data #584

Open
ericzbeard opened this issue Nov 7, 2024 · 0 comments
Open

Add analytics data #584

ericzbeard opened this issue Nov 7, 2024 · 0 comments

Comments

@ericzbeard
Copy link
Contributor

ericzbeard commented Nov 7, 2024

We can record usage analytics by adding this to templates generated by Rain:

Metadata:
  AWSToolsMetrics:
    Rain: {string - whatever we want}

This will be recorded by the CloudFormation service.

This should be implemented by the deploy command, which will add the metadata node silently, unless the user specifies the --no-analytics flag.

Data to record:

  • Rain version
  • Modules used? This would be hard, since modules could be local paths, uris, zipped packages. It's not like CDK with standard libraries. If we do this, it will have to be done by the pkg command too.
  • Features used? Modules, metadata

Maybe the version is all we need?

Design the data model to be flexible in case we want to add new elements later. Maybe a base64 encoded and compressed yaml string.

Next question is, if all we add is the version, what does this give us over existing analytics based on SDK calls with the user agent?

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