-
Notifications
You must be signed in to change notification settings - Fork 421
Bug: Metric.add_dimension doesn't aggregate #1579
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
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Thank you @cfchou for raising this - this is a bug. Investigating and once we have a fix we'll make a patch release ASAP |
Got a fix (thanks to your quick tests too!). Triple checking if I haven't missed anything else before we make a release |
|
Making a patch release and will share more info soon. |
This is now released under 1.31.0 version! |
Publishing Lambda Layer across 22 AWS regions, should be live in ~10m. Will post here when done. |
Lambda Layer deployment complete - new version is 38 across all regions. e.g., Please let us know if this somehow doesn't solve your end @cfchou. Thank you one more time for this great bug report! |
Expected Behaviour
https://awslabs.github.io/aws-lambda-powertools-python/latest/core/metrics/#getting-started
I may be wrong but I think this behavior should also apply to add_dimension. I expect to be able to add_dimension or add_metrics to any
Metrics
instance. When serializing any one of the instances, an EMF blob is created and it has all metrics and dimensions.Current Behaviour
When serializing a
Metrics
instance, dimensions added to other instances do not appear.Code snippet
The text was updated successfully, but these errors were encountered: