Disallow duplicate dimension sets
markkuhn opened this issue · 2 comments
markkuhn commented
Related issues:
- awslabs/aws-embedded-metrics-node#20
- awslabs/aws-embedded-metrics-node#104
- awslabs/aws-embedded-metrics-java#88
- awslabs/aws-embedded-metrics-dotnet#31
Currently duplicate dimension sets are being allowed.
Example:
metrics.put_dimensions({"Region": "us-east-1"})
metrics.put_dimensions({"Region": "us-east-2"})
This creates:
"Dimensions": [
[
"LogGroup",
"ServiceName",
"ServiceType",
"Region"
],
[
"LogGroup",
"ServiceName",
"ServiceType",
"Region"
]
]
When it should be:
"Dimensions": [
[
"LogGroup",
"ServiceName",
"ServiceType",
"Region"
]
]
gordonpn commented
Should there be an issue for the dotnet library as well?