Skip to content

Commit

Permalink
[chore] Remove usage of experimental golang packages
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu committed Sep 20, 2024
1 parent 7253ab8 commit 4f4c560
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion cmd/otelcorecol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ require (
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/text v0.18.0 // indirect
gonum.org/v1/gonum v0.15.1 // indirect
Expand Down
2 changes: 1 addition & 1 deletion otelcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ require (
go.uber.org/goleak v1.3.0
go.uber.org/multierr v1.11.0
go.uber.org/zap v1.27.0
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
golang.org/x/sys v0.25.0
google.golang.org/grpc v1.66.2
gopkg.in/yaml.v3 v3.0.1
Expand Down Expand Up @@ -97,6 +96,7 @@ require (
go.opentelemetry.io/otel/sdk/metric v1.30.0 // indirect
go.opentelemetry.io/otel/trace v1.30.0 // indirect
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/text v0.18.0 // indirect
gonum.org/v1/gonum v0.15.1 // indirect
Expand Down
6 changes: 3 additions & 3 deletions otelcol/internal/configunmarshaler/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package configunmarshaler // import "go.opentelemetry.io/collector/otelcol/inter

import (
"fmt"

"golang.org/x/exp/maps"
"maps"
"slices"

"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/confmap"
Expand Down Expand Up @@ -35,7 +35,7 @@ func (c *Configs[F]) Unmarshal(conf *confmap.Conf) error {
// Find factory based on component kind and type that we read from config source.
factory, ok := c.factories[id.Type()]
if !ok {
return errorUnknownType(id, maps.Keys(c.factories))
return errorUnknownType(id, slices.Collect(maps.Keys(c.factories)))

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / Integration test

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / Integration test

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / test-coverage

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / test-coverage

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / test-coverage

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / test-coverage

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / test-coverage

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / test-coverage

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-3)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-3)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-3)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-3)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-1)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-1)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-1)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-1)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-0)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-0)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-0)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-0)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (processor)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (processor)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (processor)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (processor)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (connector)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (connector)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (connector)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (connector)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (cmd-1)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (cmd-1)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (cmd-1)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (cmd-1)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (other)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (other)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (other)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (other)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-1)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-1)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-1)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (exporter-1)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-0)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-0)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-0)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-0)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / windows-unittest

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / windows-unittest

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / windows-unittest

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / windows-unittest

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / windows-unittest

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / windows-unittest

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-2)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-2)

undefined: maps.Keys

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-2)

undefined: slices.Collect

Check failure on line 38 in otelcol/internal/configunmarshaler/configs.go

View workflow job for this annotation

GitHub Actions / contrib-tests-matrix (receiver-2)

undefined: maps.Keys
}

// Get the configuration from the confmap.Conf to preserve internal representation.
Expand Down
1 change: 0 additions & 1 deletion otelcol/otelcoltest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ require (
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
Expand Down

0 comments on commit 4f4c560

Please sign in to comment.