Usage Metrics
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.
To remain transparent, we append an ID, version, and list of generator IDs to CloudFormation Stack descriptions. This is done in the MetricsAspect in common/constructs for CDK or in the metrics.tf Cloudformation stack for Terraform.
Opting Out
Section titled “Opting Out”The metrics code lives entirely in your workspace, so you can opt out by removing it:
- CDK: remove the
MetricsAspectclass and theAspects.of(this).add(new MetricsAspect())call frompackages/common/constructs/src/core/app.ts. - Terraform: delete
packages/common/terraform/src/metrics/metrics.tf.
Generators will not re-add the metrics code once removed.