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:
parent
4aedc1cdaf
commit
9778aa328f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user