-
Notifications
You must be signed in to change notification settings - Fork 835
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
feat: remove HistogramAggregator.reset #1292
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1292 +/- ##
==========================================
- Coverage 92.45% 92.44% -0.01%
==========================================
Files 183 183
Lines 4570 4565 -5
Branches 949 949
==========================================
- Hits 4225 4220 -5
Misses 345 345
|
No idea why the codecov is complaining about the coverage diff. By the first impression, this PR isn't expected to affect the coverage if I understand correctly. 🤔 |
So previously histogram tests were not running at all for the file name not matching the |
@open-telemetry/javascript-approvers hey, I'd like to raise my hand for this PR. This PR has been open for 8 days and been approved by two of @open-telemetry/javascript-approvers and @open-telemetry/javascript-maintainers. Do we have any guidelines on how many open days of one approved PR has to meet? Like say, a PR opened for at least two days long and been approved by @open-telemetry/javascript-approvers and @open-telemetry/javascript-maintainers can safely land. |
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.
LGTM, sorry for the delay.
Apologies in the delay, this slipped through the cracks. Will wait for @obecny's approval before merging the PR. @dyladan WDYT? |
Currently the contributing guidelines state 4 approvals including "both" maintainers (now we have 3). I am currently thinking of "both" maintainers wording as "at least 2 of 3 maintainers". I would say 3 approvals is enough if those 3 are all maintainers or if the PR is small. I would prefer one more review on this. |
As @dyladan suggested, it will be great to have another review from @open-telemetry/javascript-maintainers and @open-telemetry/javascript-approvers. Many thanks :) |
@legendecas no need to tag both maintainers and approvers since maintainers is a subset of approvers :) |
# Conflicts: # packages/opentelemetry-exporter-collector/test/common/transformMetrics.test.ts
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.
lgtm, one question
@@ -40,18 +40,9 @@ describe('HistogramAggregator', () => { | |||
}); | |||
|
|||
describe('.update()', () => { | |||
it('should not update checkpoint', () => { |
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.
why is this not needed ?
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.
Aggregators are expected to update the current checkpoint on each aggregator.update
call. This case asserts the original HistogramAggregator update the checkpoint on histogramAggregator.reset
-- this is not compliant with the current spec draft and not aligned with other existing aggregators.
Snapshot of spec draft: open-telemetry/opentelemetry-specification#347
Which problem is this PR solving?
HistogramAggregator.update(value)
operation.Short description of the changes
HistogramAggregator.reset()
as it no longer exists in spec draft.HistogramAggregator.update(value)
will directly update the current state and can be reflected byHistogram.toPoint
.