Skip to content

Commit

Permalink
Remove unnecessary build restrictions for go1.18
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Sep 21, 2022
1 parent 038248b commit a1b4585
Show file tree
Hide file tree
Showing 70 changed files with 3 additions and 210 deletions.
3 changes: 0 additions & 3 deletions bridge/opencensus/internal/ocmetric/metric.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package internal // import "go.opentelemetry.io/otel/bridge/opencensus/internal/ocmetric"

import (
Expand Down
3 changes: 0 additions & 3 deletions bridge/opencensus/internal/ocmetric/metric_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package internal // import "go.opentelemetry.io/otel/bridge/opencensus/opencensusmetric/internal"

import (
Expand Down
3 changes: 0 additions & 3 deletions example/prometheus/main.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package main

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/client.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetric // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/exporter.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetric // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/exporter_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetric // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/internal/otest/client.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otest"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/internal/otest/client_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otest"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/internal/otest/collector.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otest // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/otest"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/internal/transform/attribute.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package transform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/transform"

import (
Expand Down
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package transform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/transform"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/internal/transform/error.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package transform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/transform"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/internal/transform/error_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package transform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/transform"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/internal/transform/metricdata.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package transform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/transform"

import (
Expand Down
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package transform // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/internal/transform"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetricgrpc/client.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetricgrpc // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetricgrpc/client_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetricgrpc

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetricgrpc/config.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetricgrpc // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetricgrpc/example_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetricgrpc_test

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetrichttp/client.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetrichttp // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetrichttp/client_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetrichttp

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetrichttp/config.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetrichttp // import "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/otlp/otlpmetric/otlpmetrichttp/example_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package otlpmetrichttp_test

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/prometheus/exporter.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package prometheus // import "go.opentelemetry.io/otel/exporters/prometheus"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/prometheus/exporter_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package prometheus

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/stdout/stdoutmetric/config.go
Expand Up @@ -11,9 +11,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package stdoutmetric // import "go.opentelemetry.io/otel/exporters/stdout/stdoutmetric"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/stdout/stdoutmetric/encoder.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package stdoutmetric // import "go.opentelemetry.io/otel/exporters/stdout/stdoutmetric"

import "errors"
Expand Down
3 changes: 0 additions & 3 deletions exporters/stdout/stdoutmetric/example_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package stdoutmetric_test

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/stdout/stdoutmetric/exporter.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package stdoutmetric // import "go.opentelemetry.io/otel/exporters/stdout/stdoutmetric"

import (
Expand Down
3 changes: 0 additions & 3 deletions exporters/stdout/stdoutmetric/exporter_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package stdoutmetric_test // import "go.opentelemetry.io/otel/exporters/stdout/stdoutmetric"

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/config.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package metric // import "go.opentelemetry.io/otel/sdk/metric"

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/config_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package metric

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/example_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package metric_test

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/exporter.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package metric // import "go.opentelemetry.io/otel/sdk/metric"

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/instrument.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package metric // import "go.opentelemetry.io/otel/sdk/metric"

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/instrument_provider.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package metric // import "go.opentelemetry.io/otel/sdk/metric"

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/internal/aggregator.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package internal // import "go.opentelemetry.io/otel/sdk/metric/internal"

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/internal/aggregator_example_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package internal

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/internal/aggregator_test.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package internal // import "go.opentelemetry.io/otel/sdk/metric/internal"

import (
Expand Down
3 changes: 0 additions & 3 deletions sdk/metric/internal/filter.go
Expand Up @@ -12,9 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build go1.18
// +build go1.18

package internal // import "go.opentelemetry.io/otel/sdk/metric/internal"

import (
Expand Down

0 comments on commit a1b4585

Please sign in to comment.