Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Metrics: Fix DistributionValue buckets properties #258

Merged
merged 2 commits into from
Jan 2, 2019

Conversation

mayurkale22
Copy link
Member

@mayurkale22 mayurkale22 commented Dec 29, 2018

DistributionValue -> Bucket has two properties count and exemplar in the metrics data model. This PR will honor these properties and assign values as per proto definition.

Also, Make exemplar optional. As per metrics.proto, we omit exemplar field when the distribution does not have a histogram.

@mayurkale22 mayurkale22 requested review from justindsmith, isaikevych and songy23 and removed request for isaikevych December 29, 2018 05:36
@codecov-io
Copy link

codecov-io commented Dec 29, 2018

Codecov Report

Merging #258 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #258      +/-   ##
==========================================
+ Coverage   94.61%   94.61%   +<.01%     
==========================================
  Files         101      101              
  Lines        7311     7312       +1     
  Branches      690      690              
==========================================
+ Hits         6917     6918       +1     
  Misses        394      394
Impacted Files Coverage Δ
src/stats/view.ts 97.7% <0%> (+0.02%) ⬆️

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 52c304e...92c94b5. Read the comment docs.

As per metrics.proto, we omit exemplar field when the distribution does not have a histogram.
@mayurkale22 mayurkale22 merged commit 07e94f7 into census-instrumentation:master Jan 2, 2019
@mayurkale22 mayurkale22 deleted the fix_buckets branch January 2, 2019 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants