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. |
toumorokoshi
left a comment
There was a problem hiding this comment.
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 😄 |
ocelotl
left a comment
There was a problem hiding this comment.
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 |
codeboten
left a comment
There was a problem hiding this comment.
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
Recordclass in the metrics sdk toAccumulationrelated to PR #1372 and issue #1342
Summary of Changes
Recordclass toAccumulationrecord = metrics.Accumulation()toaccumulation = metrics.Accumulation()for consistencyRationale behind changes
1. rename
Recordclass toAccumulationMeterclass should be renamed toAccumulator2. 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