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

Fix the order of initialization between DoubleHistogram and LongHistogram #474

Conversation

hunguyenaxon
Copy link
Contributor

The fix is for #470

Both kind of instrument build sdk should have the same order: instrumentName, description, unit. It then allows the swapBuilder(...) perform correctly


var valueType: InstrumentValueType = .long
let valueType: InstrumentValueType = .long
Copy link
Contributor Author

@hunguyenaxon hunguyenaxon Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These properties should be constant because it ties with the class itself.

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...etrics/Stable/DoubleHistogramMeterBuilderSdk.swift 80.00% <100.00%> (ø)
.../Metrics/Stable/LongHistogramMeterBuilderSdk.swift 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

vvydier
vvydier approved these changes Oct 9, 2023
@bryce-b bryce-b merged commit e2c7e6b into open-telemetry:main Oct 9, 2023
4 checks passed
@hunguyenaxon hunguyenaxon deleted the hunguyen-470-fix-long-historgram-init-order branch October 10, 2023 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants