Navigation Menu

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 HistogramDataPoints transform in otlpmetric #3293

Merged
merged 3 commits into from Oct 17, 2022

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Oct 15, 2022

Fixes #3284

The transform uses the same reference a histogram datapoint sum value for all transformed metrics. This results in all transformed metrics being exported with the same sum (see #3284). This changes the transform to correctly reference a unique sum for each datapoint.

Fixes open-telemetry#3284

The transform uses the same reference a histogram datapoint sum value
for all transformed metrics. This results in all transformed metrics
being exported with the same sum (see open-telemetry#3284). This changes the transform
to correctly reference a unique sum for each datapoint.
@codecov
Copy link

codecov bot commented Oct 15, 2022

Codecov Report

Merging #3293 (daeb2d5) into main (9d7779a) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3293   +/-   ##
=====================================
  Coverage   77.7%   77.8%           
=====================================
  Files        164     164           
  Lines      11263   11264    +1     
=====================================
+ Hits        8762    8767    +5     
+ Misses      2303    2299    -4     
  Partials     198     198           
Impacted Files Coverage Δ
...s/otlp/otlpmetric/internal/transform/metricdata.go 100.0% <100.0%> (ø)
sdk/trace/batch_span_processor.go 81.9% <0.0%> (+1.7%) ⬆️

@MrAlias MrAlias added this to the Metric v0.33.0 milestone Oct 16, 2022
@MadVikingGod MadVikingGod merged commit 042d938 into open-telemetry:main Oct 17, 2022
@MrAlias MrAlias deleted the fix-3284 branch October 17, 2022 15:15
@MrAlias MrAlias mentioned this pull request Oct 19, 2022
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.

Histogram sum is not correct in latest version (critical)
3 participants