2020-03-23 22:41:10 -07:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2019-11-15 13:01:20 -08:00
|
|
|
//
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
|
//
|
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
2020-06-09 22:41:51 -07:00
|
|
|
package aggregation // import "go.opentelemetry.io/otel/sdk/export/metric/aggregation"
|
2019-11-15 13:01:20 -08:00
|
|
|
|
|
|
|
|
import (
|
2021-12-23 08:35:32 -08:00
|
|
|
"go.opentelemetry.io/otel/metric/number"
|
2021-12-13 12:13:03 -08:00
|
|
|
"go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
2019-11-15 13:01:20 -08:00
|
|
|
)
|
|
|
|
|
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
type Aggregation = aggregation.Aggregation
|
2020-06-09 22:41:51 -07:00
|
|
|
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
type Sum = aggregation.Sum
|
2019-11-15 13:01:20 -08:00
|
|
|
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
type Count = aggregation.Count
|
2019-11-15 13:01:20 -08:00
|
|
|
|
2021-12-23 08:35:32 -08:00
|
|
|
// Deprecated: Will be removed soon.
|
|
|
|
|
type Min interface {
|
|
|
|
|
Aggregation
|
|
|
|
|
Min() (number.Number, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Will be removed soon.
|
|
|
|
|
type Max interface {
|
|
|
|
|
Aggregation
|
|
|
|
|
Max() (number.Number, error)
|
|
|
|
|
}
|
2019-11-15 13:01:20 -08:00
|
|
|
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
type LastValue = aggregation.LastValue
|
2019-11-15 13:01:20 -08:00
|
|
|
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
type Buckets = aggregation.Buckets
|
2020-05-21 11:21:13 -07:00
|
|
|
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
type Histogram = aggregation.Histogram
|
2019-11-15 13:01:20 -08:00
|
|
|
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
type Kind = aggregation.Kind
|
2020-06-09 22:41:51 -07:00
|
|
|
|
|
|
|
|
const (
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
SumKind = aggregation.SumKind
|
|
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
HistogramKind = aggregation.HistogramKind
|
|
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
LastValueKind = aggregation.LastValueKind
|
2020-06-09 22:41:51 -07:00
|
|
|
)
|
|
|
|
|
|
2019-11-15 13:01:20 -08:00
|
|
|
var (
|
2021-12-13 12:13:03 -08:00
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
ErrNegativeInput = aggregation.ErrNegativeInput
|
|
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
ErrNaNInput = aggregation.ErrNaNInput
|
|
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
ErrInconsistentType = aggregation.ErrInconsistentType
|
|
|
|
|
|
|
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
ErrNoCumulativeToDelta = aggregation.ErrNoCumulativeToDelta
|
|
|
|
|
|
|
|
|
|
// Deprecated: use module "go.opentelemetry.io/otel/sdk/metric/export/aggregation"
|
|
|
|
|
ErrNoData = aggregation.ErrNoData
|
2019-11-15 13:01:20 -08:00
|
|
|
)
|