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

chore: add usage metric identifiers to cloudformation stack descriptions #126

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

cogwirrel
Copy link
Contributor

Reason for this change

In order to help us improve the Nx Plugin for AWS, we collect metrics on generator usage.

Description of changes

This process involves no additional network requests, we simply leverage existing AWS usage metrics. We append an ID, version, and list of generator IDs to CloudFormation Stack descriptions. This is done in the MetricsAspect in common/constructs.

Description of how you validated changes

Unit tests and tested in an example project

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@codecov-commenter
Copy link

codecov-commenter commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.80%. Comparing base (f2e7dba) to head (ff9601b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #126      +/-   ##
==========================================
+ Coverage   95.74%   95.80%   +0.06%     
==========================================
  Files          42       45       +3     
  Lines        5361     5511     +150     
  Branches      684      693       +9     
==========================================
+ Hits         5133     5280     +147     
- Misses        221      224       +3     
  Partials        7        7              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

In order to help us improve the Nx Plugin for AWS, we collect metrics on generator usage. This
process involves no additional network requests, we simply leverage existing AWS usage metrics. We
append an ID, version, and list of generator IDs to CloudFormation Stack descriptions. This is done
in the `MetricsAspect` in `common/constructs`.
@cogwirrel cogwirrel merged commit 53f0b12 into main Mar 27, 2025
6 checks passed
@cogwirrel cogwirrel deleted the chore/metrics branch March 27, 2025 23:57
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.

3 participants