-
Notifications
You must be signed in to change notification settings - Fork 656
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
Rename Record class in Metrics SDK to Accumulation to follow spec #1373
Rename Record class in Metrics SDK to Accumulation to follow spec #1373
Conversation
CHANGELOG? |
@ocelotl |
@lzchen random question: it looks like there's also a |
Ah, I suppose the spec calls for it... although ExportRecord should include an additional timestamp field. |
I think this is intentional, there's strong wording that this needs to be possible:
The other option would be to move that association in the processor, which comes with the caveat that all accumulations must be associated with the same resource. If I had to guess, the reason why it's designed this way is that processors / exporters might need to consume accumulations from multiple meters, so knowing what resource to use is helpful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change make sense to me! Would be good to see the other desired changes (e.g. declaration of an accumulator class) in future PRs.
Right this was my thinking as well. If the a |
@lzchen Added changes to the changelog!
@toumorokoshi yup a PR for that is up too #1372 would appreciate a review 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, even if there is still confusion regarding the nomenclature of the components (understandable, the specification is still evolving) it is the right thing to do to be compliant even if changes are quite likely in the foreseeable future.
@AzfaarQureshi |
c4ef6c7
to
edf475a
Compare
@lzchen rebased! |
@AzfaarQureshi |
edf475a
to
37f70a3
Compare
@lzchen rebased again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like another update to the branch is needed
37f70a3
to
ef4ed4a
Compare
lol, @codeboten rebased again :) |
Description
This PR addresses Issue #1343 and issue #1307 by renaming the
Record
class in the metrics sdk toAccumulation
related to PR #1372 and issue #1342
Summary of Changes
Record
class toAccumulation
record = metrics.Accumulation()
toaccumulation = metrics.Accumulation()
for consistencyRationale behind changes
1. rename
Record
class toAccumulation
Meter
class should be renamed toAccumulator
2. rename all
record = metrics.Accumulation()
toaccumulation = metrics.Accumulation()
for consistencyType of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)[ ] New feature (non-breaking change which adds functionality)How Has This Been Tested?
Just made sure all the tests are passing post naming change
Checklist:
Unit tests have been addedDocumentation has been updatedcc - @ocelotl