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

Allow histogram for all instruments #4332

Merged
merged 5 commits into from Jul 19, 2023
Merged

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jul 17, 2023

Any instrument that can record negative values, do not include a sum in the produced aggregation (like the specification recommends).

Resolves #4161

Any instrument that can record negative values, do not include a sum in
the produced aggregation (like the specification recommends).

Resolves open-telemetry#4161
@MrAlias MrAlias added pkg:SDK Related to an SDK package area:metrics Part of OpenTelemetry Metrics labels Jul 17, 2023
@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #4332 (363fd3c) into main (9b0c4d2) will increase coverage by 0.0%.
The diff coverage is 83.8%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4332   +/-   ##
=====================================
  Coverage   83.4%   83.5%           
=====================================
  Files        184     184           
  Lines      14350   14366   +16     
=====================================
+ Hits       11977   11997   +20     
+ Misses      2147    2143    -4     
  Partials     226     226           
Impacted Files Coverage Δ
sdk/metric/pipeline.go 91.2% <58.3%> (-1.5%) ⬇️
sdk/metric/internal/aggregate/aggregate.go 100.0% <100.0%> (ø)
sdk/metric/internal/aggregate/histogram.go 100.0% <100.0%> (ø)

... and 4 files with indirect coverage changes

@MrAlias MrAlias merged commit f194fb0 into open-telemetry:main Jul 19, 2023
22 checks passed
@MrAlias MrAlias deleted the no-sum-hist branch July 19, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics pkg:SDK Related to an SDK package
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Do not collect the histogram sum for UpDownCounter or ObservableGauge instruments
4 participants