mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-30 04:40:41 +02:00
Move api/unit to top level (#1185)
* Move api/unit to top level * Add changes to CHANGELOG
This commit is contained in:
parent
930b4d01f6
commit
4b46365d1d
@ -45,6 +45,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||
- Don't consider unset environment variable for resource detection to be an error. (#1170)
|
||||
- Rename `go.opentelemetry.io/otel/api/metric.ConfigureInstrument` to `NewInstrumentConfig` and
|
||||
`go.opentelemetry.io/otel/api/metric.ConfigureMeter` to `NewMeterConfig`.
|
||||
- Move the `go.opentelemetry.io/otel/api/unit` package to `go.opentelemetry.io/otel/unit`. (#1185)
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@ -22,8 +22,8 @@ import (
|
||||
"go.opentelemetry.io/otel/api/metric"
|
||||
"go.opentelemetry.io/otel/api/metric/metrictest"
|
||||
mockTest "go.opentelemetry.io/otel/api/metric/metrictest"
|
||||
"go.opentelemetry.io/otel/api/unit"
|
||||
"go.opentelemetry.io/otel/label"
|
||||
"go.opentelemetry.io/otel/unit"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
package metric
|
||||
|
||||
import "go.opentelemetry.io/otel/api/unit"
|
||||
import "go.opentelemetry.io/otel/unit"
|
||||
|
||||
// InstrumentConfig contains options for instrument descriptors.
|
||||
type InstrumentConfig struct {
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
package metric
|
||||
|
||||
import "go.opentelemetry.io/otel/api/unit"
|
||||
import "go.opentelemetry.io/otel/unit"
|
||||
|
||||
// Descriptor contains all the settings that describe an instrument,
|
||||
// including its name, metric kind, number kind, and the configurable
|
||||
|
@ -27,13 +27,13 @@ import (
|
||||
metricpb "go.opentelemetry.io/otel/exporters/otlp/internal/opentelemetry-proto-gen/metrics/v1"
|
||||
|
||||
"go.opentelemetry.io/otel/api/metric"
|
||||
"go.opentelemetry.io/otel/api/unit"
|
||||
"go.opentelemetry.io/otel/label"
|
||||
export "go.opentelemetry.io/otel/sdk/export/metric"
|
||||
"go.opentelemetry.io/otel/sdk/export/metric/aggregation"
|
||||
"go.opentelemetry.io/otel/sdk/export/metric/metrictest"
|
||||
"go.opentelemetry.io/otel/sdk/metric/aggregator/minmaxsumcount"
|
||||
sumAgg "go.opentelemetry.io/otel/sdk/metric/aggregator/sum"
|
||||
"go.opentelemetry.io/otel/unit"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -13,4 +13,4 @@
|
||||
// limitations under the License.
|
||||
|
||||
// Package unit provides units.
|
||||
package unit // import "go.opentelemetry.io/otel/api/unit"
|
||||
package unit // import "go.opentelemetry.io/otel/unit"
|
Loading…
x
Reference in New Issue
Block a user