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

Disallow duplicate dimension sets #83

Closed
markkuhn opened this issue Aug 9, 2022 · 2 comments · Fixed by #85
Closed

Disallow duplicate dimension sets #83

markkuhn opened this issue Aug 9, 2022 · 2 comments · Fixed by #85
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@markkuhn
Copy link
Contributor

markkuhn commented Aug 9, 2022

Related issues:

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"
  ]
]
@markkuhn markkuhn added bug Something isn't working good first issue Good for newcomers labels Aug 9, 2022
@gordonpn
Copy link
Member

Should there be an issue for the dotnet library as well?

@markkuhn
Copy link
Contributor Author

markkuhn commented Aug 10, 2022

@gordonpn It is indeed an issue in the dotnet library as well. Creating an issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants