diff --git a/sdk/metric/exporter.go b/sdk/metric/exporter.go index cce68657e54..309381fe8d3 100644 --- a/sdk/metric/exporter.go +++ b/sdk/metric/exporter.go @@ -21,7 +21,7 @@ import ( "context" "fmt" - "go.opentelemetry.io/otel/sdk/metric/export" + "go.opentelemetry.io/otel/sdk/metric/metricdata" ) // ErrExporterShutdown is returned if Export or Shutdown are called after an @@ -41,7 +41,7 @@ type Exporter interface { // implement any retry logic. All errors returned by this function are // considered unrecoverable and will be reported to a configured error // Handler. - Export(context.Context, export.ResourceMetrics) error + Export(context.Context, metricdata.ResourceMetrics) error // ForceFlush flushes any metric data held by an exporter. // diff --git a/sdk/metric/export/data.go b/sdk/metric/metricdata/data.go similarity index 98% rename from sdk/metric/export/data.go rename to sdk/metric/metricdata/data.go index 196a83057a9..ac9eb54c55a 100644 --- a/sdk/metric/export/data.go +++ b/sdk/metric/metricdata/data.go @@ -18,7 +18,7 @@ // TODO: NOTE this is a temporary space, it may be moved following the // discussion of #2813, or #2841 -package export // import "go.opentelemetry.io/otel/sdk/metric/export" +package metricdata // import "go.opentelemetry.io/otel/sdk/metric/metricdata" import ( "time" diff --git a/sdk/metric/export/temporality.go b/sdk/metric/metricdata/temporality.go similarity index 94% rename from sdk/metric/export/temporality.go rename to sdk/metric/metricdata/temporality.go index 163bec389e8..561fdab50c3 100644 --- a/sdk/metric/export/temporality.go +++ b/sdk/metric/metricdata/temporality.go @@ -15,7 +15,7 @@ //go:build go1.17 // +build go1.17 -package export // import "go.opentelemetry.io/otel/sdk/metric/export" +package metricdata // import "go.opentelemetry.io/otel/sdk/metric/metricdata" // Temporality defines the window that an aggregation was calculated over. type Temporality uint8