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

Deprecate ValueRecorder in favor of Histogram #728

Merged
merged 1 commit into from Feb 13, 2022

Conversation

hdost
Copy link
Contributor

@hdost hdost commented Feb 9, 2022

The Metric API Spec is now stable and ValueRecorder was replaced with
Histogram.

@hdost hdost requested a review from a team as a code owner February 9, 2022 22:03
@hdost hdost force-pushed the deprecate-value-recorder branch 4 times, most recently from 0c930a1 to aa9fa19 Compare February 9, 2022 22:56
@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #728 (c3fc589) into main (aee4249) will not change coverage.
The diff coverage is 60.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #728   +/-   ##
=======================================
  Coverage   71.50%   71.50%           
=======================================
  Files         102      102           
  Lines        8593     8593           
=======================================
  Hits         6144     6144           
  Misses       2449     2449           
Impacted Files Coverage Δ
opentelemetry/src/metrics/kind.rs 71.42% <ø> (ø)
opentelemetry/src/metrics/meter.rs 100.00% <ø> (ø)
opentelemetry/src/metrics/mod.rs 0.00% <ø> (ø)
opentelemetry/src/sdk/export/metrics/mod.rs 62.65% <ø> (ø)
opentelemetry/src/sdk/metrics/aggregators/mod.rs 70.00% <ø> (ø)
opentelemetry/src/sdk/metrics/selectors/simple.rs 28.00% <0.00%> (ø)
opentelemetry-dynatrace/src/transform/metrics.rs 83.33% <100.00%> (ø)
...ntelemetry/src/sdk/metrics/aggregators/ddsketch.rs 76.83% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aee4249...c3fc589. Read the comment docs.

@hdost hdost force-pushed the deprecate-value-recorder branch 4 times, most recently from 3cacf46 to 747739f Compare February 10, 2022 23:36
@hdost
Copy link
Contributor Author

hdost commented Feb 11, 2022

@TommyCpp I know the codecov are optional is it ok in this case since it's bascially just replacing a type?

@TommyCpp
Copy link
Contributor

@TommyCpp I know the codecov are optional is it ok in this case since it's bascially just replacing a type?

Yeah, don't worry about it especially for -0.02% changes

opentelemetry/src/metrics/histogram.rs Outdated Show resolved Hide resolved
opentelemetry/src/metrics/histogram.rs Outdated Show resolved Hide resolved
The Metric API Spec is now stable and ValueRecorder was replaced with
Histogram.

* Deprecations - left structs unmarked as clippy threw a fit.
* Update all code examples to use Histograms.
* Remove InstrumentKind::ValueRecorder since it's not part of the API.
** Otherwise we were left with duplicating code int the SDK which does
   exactly the same thing.

Signed-off-by: Harold Dost <github@hdost.com>
@hdost
Copy link
Contributor Author

hdost commented Feb 13, 2022

Only change was a rebase

@TommyCpp
Copy link
Contributor

Looks good. Thanks

@TommyCpp TommyCpp merged commit b695ba1 into open-telemetry:main Feb 13, 2022
@hdost hdost deleted the deprecate-value-recorder branch February 15, 2022 07:49
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.

None yet

2 participants