You've already forked opentelemetry-go
							
							
				mirror of
				https://github.com/open-telemetry/opentelemetry-go.git
				synced 2025-10-31 00:07:40 +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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user