1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-02 08:52:21 +02:00

Remove Min/Max unused interfaces from the moved code (#2454)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
Bogdan Drutu 2021-12-23 08:35:32 -08:00 committed by GitHub
parent 4aedc1cdaf
commit 9778aa328f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 16 deletions

View File

@ -15,6 +15,7 @@
package aggregation // import "go.opentelemetry.io/otel/sdk/export/metric/aggregation"
import (
"go.opentelemetry.io/otel/metric/number"
"go.opentelemetry.io/otel/sdk/metric/export/aggregation"
)
@ -27,11 +28,17 @@ type Sum = aggregation.Sum
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
type Count = aggregation.Count
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
type Min = aggregation.Min
// Deprecated: Will be removed soon.
type Min interface {
Aggregation
Min() (number.Number, error)
}
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
type Max = aggregation.Max
// Deprecated: Will be removed soon.
type Max interface {
Aggregation
Max() (number.Number, error)
}
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
type LastValue = aggregation.LastValue

View File

@ -46,18 +46,6 @@ type (
Count() (uint64, error)
}
// Min returns the minimum value over the set of values that were aggregated.
Min interface {
Aggregation
Min() (number.Number, error)
}
// Max returns the maximum value over the set of values that were aggregated.
Max interface {
Aggregation
Max() (number.Number, error)
}
// LastValue returns the latest value that was aggregated.
LastValue interface {
Aggregation