You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-09-16 09:26:25 +02:00
Move api/unit to top level (#1185)
* Move api/unit to top level * Add changes to CHANGELOG
This commit is contained in:
@@ -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)
|
- 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
|
- Rename `go.opentelemetry.io/otel/api/metric.ConfigureInstrument` to `NewInstrumentConfig` and
|
||||||
`go.opentelemetry.io/otel/api/metric.ConfigureMeter` to `NewMeterConfig`.
|
`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
|
### Fixed
|
||||||
|
|
||||||
|
@@ -22,8 +22,8 @@ import (
|
|||||||
"go.opentelemetry.io/otel/api/metric"
|
"go.opentelemetry.io/otel/api/metric"
|
||||||
"go.opentelemetry.io/otel/api/metric/metrictest"
|
"go.opentelemetry.io/otel/api/metric/metrictest"
|
||||||
mockTest "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/label"
|
||||||
|
"go.opentelemetry.io/otel/unit"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
package metric
|
package metric
|
||||||
|
|
||||||
import "go.opentelemetry.io/otel/api/unit"
|
import "go.opentelemetry.io/otel/unit"
|
||||||
|
|
||||||
// InstrumentConfig contains options for instrument descriptors.
|
// InstrumentConfig contains options for instrument descriptors.
|
||||||
type InstrumentConfig struct {
|
type InstrumentConfig struct {
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
package metric
|
package metric
|
||||||
|
|
||||||
import "go.opentelemetry.io/otel/api/unit"
|
import "go.opentelemetry.io/otel/unit"
|
||||||
|
|
||||||
// Descriptor contains all the settings that describe an instrument,
|
// Descriptor contains all the settings that describe an instrument,
|
||||||
// including its name, metric kind, number kind, and the configurable
|
// 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"
|
metricpb "go.opentelemetry.io/otel/exporters/otlp/internal/opentelemetry-proto-gen/metrics/v1"
|
||||||
|
|
||||||
"go.opentelemetry.io/otel/api/metric"
|
"go.opentelemetry.io/otel/api/metric"
|
||||||
"go.opentelemetry.io/otel/api/unit"
|
|
||||||
"go.opentelemetry.io/otel/label"
|
"go.opentelemetry.io/otel/label"
|
||||||
export "go.opentelemetry.io/otel/sdk/export/metric"
|
export "go.opentelemetry.io/otel/sdk/export/metric"
|
||||||
"go.opentelemetry.io/otel/sdk/export/metric/aggregation"
|
"go.opentelemetry.io/otel/sdk/export/metric/aggregation"
|
||||||
"go.opentelemetry.io/otel/sdk/export/metric/metrictest"
|
"go.opentelemetry.io/otel/sdk/export/metric/metrictest"
|
||||||
"go.opentelemetry.io/otel/sdk/metric/aggregator/minmaxsumcount"
|
"go.opentelemetry.io/otel/sdk/metric/aggregator/minmaxsumcount"
|
||||||
sumAgg "go.opentelemetry.io/otel/sdk/metric/aggregator/sum"
|
sumAgg "go.opentelemetry.io/otel/sdk/metric/aggregator/sum"
|
||||||
|
"go.opentelemetry.io/otel/unit"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@@ -13,4 +13,4 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// Package unit provides units.
|
// Package unit provides units.
|
||||||
package unit // import "go.opentelemetry.io/otel/api/unit"
|
package unit // import "go.opentelemetry.io/otel/unit"
|
Reference in New Issue
Block a user