1
0
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:
Tyler Yahn 2020-09-20 10:54:21 -07:00 committed by GitHub
parent 930b4d01f6
commit 4b46365d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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"

View File

@ -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 {

View File

@ -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

View File

@ -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 (

View File

@ -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"