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

Remove metric aggregator Subtract interface #2350

Merged
merged 9 commits into from
Nov 15, 2021

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Nov 5, 2021

This PR removes a bunch of complexity that the Metrics SIG group decided not to specify for the default SDK. The implication is that you will no longer be able to convert asynchronous counters into delta counters for export, which is no great loss.

Fixes #2349.

@codecov
Copy link

codecov bot commented Nov 5, 2021

Codecov Report

Merging #2350 (1baa594) into main (4077cac) will increase coverage by 0.0%.
The diff coverage is 85.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2350   +/-   ##
=====================================
  Coverage   73.5%   73.5%           
=====================================
  Files        174     174           
  Lines      12298   12273   -25     
=====================================
- Hits        9041    9026   -15     
+ Misses      3017    3009    -8     
+ Partials     240     238    -2     
Impacted Files Coverage Δ
sdk/export/metric/aggregation/aggregation.go 0.0% <ø> (ø)
sdk/export/metric/metric.go 0.0% <ø> (ø)
sdk/metric/aggregator/sum/sum.go 89.6% <ø> (+11.6%) ⬆️
sdk/metric/processor/basic/basic.go 96.9% <85.0%> (-1.7%) ⬇️
...s/otlp/otlptrace/internal/connection/connection.go 16.2% <0.0%> (+1.5%) ⬆️
sdk/trace/batch_span_processor.go 85.2% <0.0%> (+2.0%) ⬆️

sdk/metric/processor/basic/basic.go Outdated Show resolved Hide resolved
sdk/metric/processor/basic/basic_test.go Outdated Show resolved Hide resolved
@MadVikingGod
Copy link
Contributor

LGTM, needs attention to get lint to pass.

@evantorrie
Copy link
Contributor

Looks like this needs a make precommit to ensure gofmt has run on everything?

CHANGELOG.md Outdated Show resolved Hide resolved
sdk/metric/processor/basic/basic.go Outdated Show resolved Hide resolved
sdk/metric/processor/basic/basic_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

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

Looks ready to merge once we can fix the changelog

CHANGELOG.md Outdated Show resolved Hide resolved
@MrAlias
Copy link
Contributor

MrAlias commented Nov 15, 2021

Looks ready to merge once we can fix the changelog

Gahh, I spoke too soon. I forgot that @bogdandrutu is not in the @open-telemetry/go-approvers group. We need one more approval.

@MrAlias MrAlias merged commit b8ae272 into open-telemetry:main Nov 15, 2021
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.

Remove the metric aggregator Subtractor interface
7 participants