From b6556852a729cfbbef9120834466b6ef90820b7f Mon Sep 17 00:00:00 2001 From: Eng Zer Jun Date: Tue, 24 Dec 2024 00:56:09 +0800 Subject: [PATCH 1/2] *: replace `golang.org/x/exp` with standard library These experimental packages are now available in the Go standard library. Since we upgraded our minimum Go version to 1.23 in PR https://github.com/thanos-io/thanos/pull/7796, we can replace them with the standard library: 1. golang.org/x/exp/slices -> slices [1] 2. golang.org/x/exp/maps -> maps [2] 3. golang.org/x/exp/rand -> math/rand/v2 [3] [1]: https://go.dev/doc/go1.21#slices [2]: https://go.dev/doc/go1.21#maps [3]: https://go.dev/doc/go1.22#math_rand_v2 Signed-off-by: Eng Zer Jun --- go.mod | 2 +- .../validation/notifications_limit_flag.go | 2 +- .../expandedpostingscache/cache_test.go | 5 ++-- pkg/receive/handler.go | 2 +- pkg/receive/hashring.go | 2 +- pkg/receive/multitsdb.go | 2 +- pkg/rules/rules_test.go | 3 +-- pkg/store/acceptance_test.go | 2 +- pkg/store/bucket.go | 2 +- pkg/store/bucket_test.go | 23 +++++++++---------- pkg/store/cache/filter_cache.go | 2 +- pkg/store/flushable.go | 3 ++- pkg/store/lazy_postings.go | 2 +- pkg/store/tsdb_selector.go | 7 +++--- 14 files changed, 28 insertions(+), 31 deletions(-) diff --git a/go.mod b/go.mod index c6e1346c15..b1865887fa 100644 --- a/go.mod +++ b/go.mod @@ -122,7 +122,6 @@ require ( github.com/seiflotfy/cuckoofilter v0.0.0-20240715131351-a2f2c23f1771 go.opentelemetry.io/contrib/propagators/autoprop v0.54.0 go4.org/intern v0.0.0-20230525184215-6c62f75575cb - golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 ) require github.com/dgryski/go-metro v0.0.0-20200812162917-85c65e2d0165 // indirect @@ -159,6 +158,7 @@ require ( go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/propagators/ot v1.29.0 // indirect go4.org/unsafe/assume-no-moving-gc v0.0.0-20230525183740-e7c30c78aeb2 // indirect + golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect diff --git a/internal/cortex/util/validation/notifications_limit_flag.go b/internal/cortex/util/validation/notifications_limit_flag.go index 011f3e6cba..94df10a1b8 100644 --- a/internal/cortex/util/validation/notifications_limit_flag.go +++ b/internal/cortex/util/validation/notifications_limit_flag.go @@ -6,9 +6,9 @@ package validation import ( "encoding/json" "fmt" + "slices" "github.com/pkg/errors" - "golang.org/x/exp/slices" ) var allowedIntegrationNames = []string{ diff --git a/pkg/receive/expandedpostingscache/cache_test.go b/pkg/receive/expandedpostingscache/cache_test.go index 86c7573e99..8669995f7a 100644 --- a/pkg/receive/expandedpostingscache/cache_test.go +++ b/pkg/receive/expandedpostingscache/cache_test.go @@ -9,13 +9,13 @@ package expandedpostingscache import ( "bytes" "fmt" + "math/rand/v2" "strings" "sync" "testing" "time" "go.uber.org/atomic" - "golang.org/x/exp/rand" "github.com/prometheus/client_golang/prometheus" promtest "github.com/prometheus/client_golang/prometheus/testutil" @@ -202,9 +202,8 @@ var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") func randSeq(n int) string { b := make([]rune, n) - rand.Seed(uint64(time.Now().UnixNano())) for i := range b { - b[i] = letters[rand.Intn(len(letters))] + b[i] = letters[rand.IntN(len(letters))] } return string(b) } diff --git a/pkg/receive/handler.go b/pkg/receive/handler.go index 86c90c30fa..7b28a7fd12 100644 --- a/pkg/receive/handler.go +++ b/pkg/receive/handler.go @@ -13,6 +13,7 @@ import ( "math" "net" "net/http" + "slices" "sort" "strconv" "strings" @@ -36,7 +37,6 @@ import ( "github.com/prometheus/prometheus/tsdb" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" - "golang.org/x/exp/slices" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/pkg/receive/hashring.go b/pkg/receive/hashring.go index a5a14e6779..5d5e2a9371 100644 --- a/pkg/receive/hashring.go +++ b/pkg/receive/hashring.go @@ -7,13 +7,13 @@ import ( "fmt" "math" "path/filepath" + "slices" "sort" "strconv" "strings" "sync" "github.com/cespare/xxhash" - "golang.org/x/exp/slices" "github.com/go-kit/log" "github.com/go-kit/log/level" diff --git a/pkg/receive/multitsdb.go b/pkg/receive/multitsdb.go index 526e3c6ec9..2cfa967a2a 100644 --- a/pkg/receive/multitsdb.go +++ b/pkg/receive/multitsdb.go @@ -9,6 +9,7 @@ import ( "os" "path" "path/filepath" + "slices" "sort" "sync" "time" @@ -18,7 +19,6 @@ import ( "github.com/oklog/ulid" "github.com/pkg/errors" "go.uber.org/atomic" - "golang.org/x/exp/slices" "golang.org/x/sync/errgroup" "google.golang.org/grpc" diff --git a/pkg/rules/rules_test.go b/pkg/rules/rules_test.go index c4b3a5c760..cbd488c882 100644 --- a/pkg/rules/rules_test.go +++ b/pkg/rules/rules_test.go @@ -7,11 +7,10 @@ import ( "context" "path" "path/filepath" + "slices" "testing" "time" - "golang.org/x/exp/slices" - "github.com/efficientgo/core/testutil" "github.com/gogo/protobuf/proto" "github.com/prometheus/prometheus/model/labels" diff --git a/pkg/store/acceptance_test.go b/pkg/store/acceptance_test.go index 48fc00adfb..20d4f31ec0 100644 --- a/pkg/store/acceptance_test.go +++ b/pkg/store/acceptance_test.go @@ -10,13 +10,13 @@ import ( "net/url" "os" "path/filepath" + "slices" "testing" "time" "github.com/efficientgo/core/testutil" "github.com/go-kit/log" "github.com/pkg/errors" - "golang.org/x/exp/slices" "github.com/prometheus/common/model" "github.com/prometheus/prometheus/model/labels" diff --git a/pkg/store/bucket.go b/pkg/store/bucket.go index 1c434f503f..e09b80f31e 100644 --- a/pkg/store/bucket.go +++ b/pkg/store/bucket.go @@ -14,6 +14,7 @@ import ( "math" "os" "path" + "slices" "sort" "strings" "sync" @@ -35,7 +36,6 @@ import ( "github.com/prometheus/prometheus/tsdb/encoding" "github.com/prometheus/prometheus/tsdb/index" "github.com/weaveworks/common/httpgrpc" - "golang.org/x/exp/slices" "golang.org/x/sync/errgroup" "google.golang.org/grpc" "google.golang.org/grpc/codes" diff --git a/pkg/store/bucket_test.go b/pkg/store/bucket_test.go index df4d1e189c..2289814d66 100644 --- a/pkg/store/bucket_test.go +++ b/pkg/store/bucket_test.go @@ -16,7 +16,7 @@ import ( "path/filepath" "reflect" "regexp" - "sort" + "slices" "strconv" "strings" "sync" @@ -44,7 +44,6 @@ import ( "github.com/prometheus/prometheus/tsdb/encoding" "github.com/prometheus/prometheus/tsdb/index" "go.uber.org/atomic" - "golang.org/x/exp/slices" "github.com/thanos-io/objstore" "github.com/thanos-io/objstore/providers/filesystem" @@ -996,8 +995,8 @@ func testSharding(t *testing.T, reuseDisk string, bkt objstore.Bucket, all ...ul for id := range bucketStore.blocks { ids = append(ids, id) } - sort.Slice(ids, func(i, j int) bool { - return ids[i].Compare(ids[j]) < 0 + slices.SortFunc(ids, func(i, j ulid.ULID) int { + return i.Compare(j) }) testutil.Equals(t, sc.expectedIDs, ids) @@ -1005,7 +1004,7 @@ func testSharding(t *testing.T, reuseDisk string, bkt objstore.Bucket, all ...ul // Regression test: https://github.com/thanos-io/thanos/issues/1664 // Sort records. We load blocks concurrently so operations might be not ordered. - sort.Strings(rec.getRangeTouched) + slices.Sort(rec.getRangeTouched) // With binary header nothing should be downloaded fully. testutil.Equals(t, []string(nil), rec.getTouched) @@ -1052,7 +1051,7 @@ func expectedTouchedBlockOps(all, expected, cached []ulid.ULID) []string { ) } } - sort.Strings(ops) + slices.Sort(ops) return ops } @@ -2581,8 +2580,8 @@ func TestLabelNamesAndValuesHints(t *testing.T) { var namesHints hintspb.LabelNamesResponseHints testutil.Ok(t, types.UnmarshalAny(namesResp.Hints, &namesHints)) // The order is not determinate, so we are sorting them. - sort.Slice(namesHints.QueriedBlocks, func(i, j int) bool { - return namesHints.QueriedBlocks[i].Id < namesHints.QueriedBlocks[j].Id + slices.SortFunc(namesHints.QueriedBlocks, func(i, j hintspb.Block) int { + return strings.Compare(i.Id, j.Id) }) testutil.Equals(t, tc.expectedNamesHints, namesHints) @@ -2593,8 +2592,8 @@ func TestLabelNamesAndValuesHints(t *testing.T) { var valuesHints hintspb.LabelValuesResponseHints testutil.Ok(t, types.UnmarshalAny(valuesResp.Hints, &valuesHints)) // The order is not determinate, so we are sorting them. - sort.Slice(valuesHints.QueriedBlocks, func(i, j int) bool { - return valuesHints.QueriedBlocks[i].Id < valuesHints.QueriedBlocks[j].Id + slices.SortFunc(valuesHints.QueriedBlocks, func(i, j hintspb.Block) int { + return strings.Compare(i.Id, j.Id) }) testutil.Equals(t, tc.expectedValuesHints, valuesHints) }) @@ -2730,7 +2729,7 @@ func labelNamesFromSeriesSet(series []*storepb.Series) []string { labels = append(labels, k) } - sort.Strings(labels) + slices.Sort(labels) return labels } @@ -3345,7 +3344,7 @@ func TestMatchersToPostingGroup(t *testing.T) { } { t.Run(tc.name, func(t *testing.T) { actual, err := matchersToPostingGroups(ctx, func(name string) ([]string, error) { - sort.Strings(tc.labelValues[name]) + slices.Sort(tc.labelValues[name]) return tc.labelValues[name], nil }, tc.matchers) testutil.Ok(t, err) diff --git a/pkg/store/cache/filter_cache.go b/pkg/store/cache/filter_cache.go index 44d46db709..ade9da4c81 100644 --- a/pkg/store/cache/filter_cache.go +++ b/pkg/store/cache/filter_cache.go @@ -6,11 +6,11 @@ package storecache import ( "context" "fmt" + "slices" "github.com/oklog/ulid" "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/storage" - "golang.org/x/exp/slices" ) type FilteredIndexCache struct { diff --git a/pkg/store/flushable.go b/pkg/store/flushable.go index 33680c3c89..aa722b6aac 100644 --- a/pkg/store/flushable.go +++ b/pkg/store/flushable.go @@ -4,8 +4,9 @@ package store import ( + "slices" + "github.com/prometheus/prometheus/model/labels" - "golang.org/x/exp/slices" "github.com/thanos-io/thanos/pkg/store/labelpb" "github.com/thanos-io/thanos/pkg/store/storepb" diff --git a/pkg/store/lazy_postings.go b/pkg/store/lazy_postings.go index ef7ae5d00a..783e04b31b 100644 --- a/pkg/store/lazy_postings.go +++ b/pkg/store/lazy_postings.go @@ -6,6 +6,7 @@ package store import ( "context" "math" + "slices" "strings" "github.com/go-kit/log/level" @@ -14,7 +15,6 @@ import ( "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/storage" "github.com/prometheus/prometheus/tsdb/index" - "golang.org/x/exp/slices" "github.com/thanos-io/thanos/pkg/block/indexheader" ) diff --git a/pkg/store/tsdb_selector.go b/pkg/store/tsdb_selector.go index 463ab96b14..761aa46737 100644 --- a/pkg/store/tsdb_selector.go +++ b/pkg/store/tsdb_selector.go @@ -4,12 +4,12 @@ package store import ( - "sort" + "maps" + "slices" "strings" "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/model/relabel" - "golang.org/x/exp/maps" "github.com/thanos-io/thanos/pkg/store/storepb" ) @@ -88,8 +88,7 @@ func MatchersForLabelSets(labelSets []labels.Labels) []storepb.LabelMatcher { matchers := make([]storepb.LabelMatcher, 0, len(labelNameValues)) for lblName, lblVals := range labelNameValues { - values := maps.Keys(lblVals) - sort.Strings(values) + values := slices.Sorted(maps.Keys(lblVals)) matcher := storepb.LabelMatcher{ Name: lblName, Value: strings.Join(values, "|"), From 90bfef6a911500c6159c1c2d66601b9b92b6c8e2 Mon Sep 17 00:00:00 2001 From: Eng Zer Jun Date: Tue, 24 Dec 2024 00:58:09 +0800 Subject: [PATCH 2/2] Tidy `go.mod` properly Two sections in total: one for direct dependencies, and one for indirect dependencies. Reference: https://github.com/golang/go/issues/56471 Signed-off-by: Eng Zer Jun --- go.mod | 163 ++++++++++++++++++++++++++------------------------------- 1 file changed, 75 insertions(+), 88 deletions(-) diff --git a/go.mod b/go.mod index b1865887fa..a6ee381211 100644 --- a/go.mod +++ b/go.mod @@ -3,19 +3,23 @@ module github.com/thanos-io/thanos go 1.23.0 require ( - cloud.google.com/go/storage v1.43.0 // indirect + capnproto.org/go/capnp/v3 v3.0.0-alpha.30 cloud.google.com/go/trace v1.10.12 github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.8.3 + github.com/KimMachineGun/automemlimit v0.6.1 github.com/alecthomas/units v0.0.0-20240626203959-61d1e3462e30 github.com/alicebob/miniredis/v2 v2.22.0 github.com/blang/semver/v4 v4.0.0 github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b + github.com/caio/go-tdigest v3.1.0+incompatible github.com/cespare/xxhash v1.1.0 github.com/cespare/xxhash/v2 v2.3.0 github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89 github.com/chromedp/chromedp v0.9.2 - github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/cortexproject/promqlsmith v0.0.0-20240506042652-6cfdd9739a5e + github.com/cristalhq/hedgedhttp v0.9.1 github.com/dustin/go-humanize v1.0.1 + github.com/efficientgo/core v1.0.0-rc.3 github.com/efficientgo/e2e v0.14.1-0.20230710114240-c316eb95ae5b github.com/efficientgo/tools/extkingpin v0.0.0-20220817170617-6c25e3b627dd github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb @@ -30,10 +34,12 @@ require ( github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da github.com/golang/protobuf v1.5.4 github.com/golang/snappy v0.0.4 + github.com/google/go-cmp v0.6.0 + github.com/google/uuid v1.6.0 github.com/googleapis/gax-go v2.0.2+incompatible - github.com/gorilla/mux v1.8.0 // indirect - github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect + github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 + github.com/hashicorp/golang-lru/v2 v2.0.7 github.com/jpillora/backoff v1.0.0 github.com/json-iterator/go v1.1.12 github.com/klauspost/compress v1.17.11 @@ -41,17 +47,17 @@ require ( github.com/lightstep/lightstep-tracer-go v0.25.0 github.com/lovoo/gcloud-opentracing v0.3.0 github.com/miekg/dns v1.1.62 - github.com/minio/minio-go/v7 v7.0.80 // indirect + github.com/minio/sha256-simd v1.0.1 + github.com/mitchellh/go-ps v1.0.0 github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f github.com/oklog/run v1.1.0 github.com/oklog/ulid v1.3.1 github.com/olekukonko/tablewriter v0.0.5 - github.com/opentracing-contrib/go-grpc v0.0.0-20210225150812-73cb765af46e // indirect - github.com/opentracing-contrib/go-stdlib v1.0.0 // indirect + github.com/onsi/gomega v1.34.0 github.com/opentracing/basictracer-go v1.1.0 github.com/opentracing/opentracing-go v1.2.0 github.com/pkg/errors v0.9.1 - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus-community/prom-label-proxy v0.8.1-0.20240127162815-c1195f9aabc0 github.com/prometheus/alertmanager v0.27.0 github.com/prometheus/client_golang v1.20.5 github.com/prometheus/client_model v0.6.1 @@ -59,19 +65,22 @@ require ( github.com/prometheus/exporter-toolkit v0.12.0 // Prometheus maps version 2.x.y to tags v0.x.y. github.com/prometheus/prometheus v0.55.1-0.20241102120812-a6fd22b9d2c8 + github.com/redis/rueidis v1.0.45-alpha.1 + github.com/seiflotfy/cuckoofilter v0.0.0-20240715131351-a2f2c23f1771 github.com/sony/gobreaker v0.5.0 github.com/stretchr/testify v1.9.0 github.com/thanos-io/objstore v0.0.0-20241111205755-d1dd89d41f97 github.com/thanos-io/promql-engine v0.0.0-20241217103156-9dbff30059cf github.com/uber/jaeger-client-go v2.30.0+incompatible - github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/vimeo/galaxycache v0.0.0-20210323154928-b7e5d71c067a github.com/weaveworks/common v0.0.0-20230728070032-dd9e68f319d5 go.elastic.co/apm v1.15.0 go.elastic.co/apm/module/apmot v1.15.0 - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect + go.opentelemetry.io/contrib/propagators/autoprop v0.54.0 + go.opentelemetry.io/contrib/samplers/jaegerremote v0.23.0 go.opentelemetry.io/otel v1.31.0 go.opentelemetry.io/otel/bridge/opentracing v1.31.0 + go.opentelemetry.io/otel/exporters/jaeger v1.16.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.29.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.29.0 go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.29.0 @@ -80,99 +89,34 @@ require ( go.uber.org/atomic v1.11.0 go.uber.org/automaxprocs v1.5.3 go.uber.org/goleak v1.3.0 + go4.org/intern v0.0.0-20230525184215-6c62f75575cb golang.org/x/crypto v0.31.0 golang.org/x/net v0.30.0 golang.org/x/sync v0.10.0 golang.org/x/text v0.21.0 golang.org/x/time v0.7.0 - google.golang.org/api v0.195.0 // indirect - google.golang.org/genproto v0.0.0-20240823204242-4ba0660f739c // indirect google.golang.org/grpc v1.66.0 google.golang.org/grpc/examples v0.0.0-20211119005141-f45e61797429 + google.golang.org/protobuf v1.35.1 gopkg.in/alecthomas/kingpin.v2 v2.2.6 gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 ) -require ( - github.com/efficientgo/core v1.0.0-rc.3 - github.com/minio/sha256-simd v1.0.1 -) - require ( cloud.google.com/go v0.115.1 // indirect + cloud.google.com/go/auth v0.9.3 // indirect + cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect + cloud.google.com/go/compute/metadata v0.5.0 // indirect cloud.google.com/go/iam v1.1.13 // indirect + cloud.google.com/go/storage v1.43.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.14.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect - go.opentelemetry.io/contrib/samplers/jaegerremote v0.23.0 - go.opentelemetry.io/otel/exporters/jaeger v1.16.0 -) - -require ( - capnproto.org/go/capnp/v3 v3.0.0-alpha.30 - github.com/cortexproject/promqlsmith v0.0.0-20240506042652-6cfdd9739a5e - github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 - github.com/hashicorp/golang-lru/v2 v2.0.7 - github.com/mitchellh/go-ps v1.0.0 - github.com/onsi/gomega v1.34.0 - github.com/prometheus-community/prom-label-proxy v0.8.1-0.20240127162815-c1195f9aabc0 - github.com/seiflotfy/cuckoofilter v0.0.0-20240715131351-a2f2c23f1771 - go.opentelemetry.io/contrib/propagators/autoprop v0.54.0 - go4.org/intern v0.0.0-20230525184215-6c62f75575cb -) - -require github.com/dgryski/go-metro v0.0.0-20200812162917-85c65e2d0165 // indirect - -require ( - cloud.google.com/go/auth v0.9.3 // indirect - cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect - github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect - github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 // indirect - github.com/cilium/ebpf v0.11.0 // indirect - github.com/containerd/cgroups/v3 v3.0.3 // indirect - github.com/docker/go-units v0.5.0 // indirect - github.com/elastic/go-licenser v0.3.1 // indirect - github.com/go-ini/ini v1.67.0 // indirect - github.com/go-openapi/runtime v0.27.1 // indirect - github.com/goccy/go-json v0.10.3 // indirect - github.com/godbus/dbus/v5 v5.0.4 // indirect - github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/google/s2a-go v0.1.8 // indirect - github.com/huaweicloud/huaweicloud-sdk-go-obs v3.23.3+incompatible // indirect - github.com/jcchavezs/porto v0.1.0 // indirect - github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353 // indirect - github.com/mdlayher/socket v0.4.1 // indirect - github.com/mdlayher/vsock v1.2.1 // indirect - github.com/metalmatze/signal v0.0.0-20210307161603-1c9aa721a97a // indirect - github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/onsi/ginkgo v1.16.5 // indirect - github.com/opencontainers/runtime-spec v1.0.2 // indirect - github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect - github.com/sercand/kuberesolver/v4 v4.0.0 // indirect - github.com/zhangyunhao116/umap v0.0.0-20221211160557-cb7705fafa39 // indirect - go.opentelemetry.io/collector/pdata v1.14.1 // indirect - go.opentelemetry.io/collector/semconv v0.108.1 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect - go.opentelemetry.io/contrib/propagators/ot v1.29.0 // indirect - go4.org/unsafe/assume-no-moving-gc v0.0.0-20230525183740-e7c30c78aeb2 // indirect - golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect - golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect - k8s.io/apimachinery v0.31.1 // indirect - k8s.io/client-go v0.31.0 // indirect - k8s.io/klog/v2 v2.130.1 // indirect - k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect - zenhack.net/go/util v0.0.0-20230414204917-531d38494cf5 // indirect -) - -require ( - cloud.google.com/go/compute/metadata v0.5.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.32.3 // indirect - github.com/KimMachineGun/automemlimit v0.6.1 + github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect github.com/OneOfOne/xxhash v1.2.6 // indirect github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect @@ -192,18 +136,24 @@ require ( github.com/aws/aws-sdk-go-v2/service/sts v1.16.1 // indirect github.com/aws/smithy-go v1.11.1 // indirect github.com/baidubce/bce-sdk-go v0.9.111 // indirect + github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 // indirect github.com/beorn7/perks v1.0.1 // indirect - github.com/caio/go-tdigest v3.1.0+incompatible github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/chromedp/sysutil v1.0.0 // indirect + github.com/cilium/ebpf v0.11.0 // indirect github.com/clbanning/mxj v1.8.4 // indirect + github.com/containerd/cgroups/v3 v3.0.3 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect - github.com/cristalhq/hedgedhttp v0.9.1 + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dennwc/varint v1.0.0 // indirect + github.com/dgryski/go-metro v0.0.0-20200812162917-85c65e2d0165 // indirect + github.com/docker/go-units v0.5.0 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect + github.com/elastic/go-licenser v0.3.1 // indirect github.com/elastic/go-sysinfo v1.8.1 // indirect github.com/elastic/go-windows v1.0.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/go-ini/ini v1.67.0 // indirect github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect @@ -213,46 +163,65 @@ require ( github.com/go-openapi/jsonpointer v0.20.2 // indirect github.com/go-openapi/jsonreference v0.20.4 // indirect github.com/go-openapi/loads v0.21.5 // indirect + github.com/go-openapi/runtime v0.27.1 // indirect github.com/go-openapi/spec v0.20.14 // indirect github.com/go-openapi/swag v0.22.9 // indirect github.com/go-openapi/validate v0.23.0 // indirect github.com/gobwas/httphead v0.1.0 // indirect github.com/gobwas/pool v0.2.1 // indirect github.com/gobwas/ws v1.2.1 // indirect + github.com/goccy/go-json v0.10.3 // indirect + github.com/godbus/dbus/v5 v5.0.4 // indirect github.com/gofrs/flock v0.8.1 // indirect github.com/gogo/googleapis v1.4.0 // indirect - github.com/google/go-cmp v0.6.0 + github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect - github.com/google/uuid v1.6.0 + github.com/google/s2a-go v0.1.8 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect github.com/googleapis/gax-go/v2 v2.13.0 // indirect + github.com/gorilla/mux v1.8.0 // indirect + github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect + github.com/huaweicloud/huaweicloud-sdk-go-obs v3.23.3+incompatible // indirect + github.com/jcchavezs/porto v0.1.0 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/joeshaw/multierror v0.0.0-20140124173710-69b34d4ec901 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/julienschmidt/httprouter v1.3.0 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect github.com/kylelemons/godebug v1.1.0 // indirect + github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353 // indirect github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20210210170715-a8dfcb80d3a7 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-runewidth v0.0.13 // indirect + github.com/mdlayher/socket v0.4.1 // indirect + github.com/mdlayher/vsock v1.2.1 // indirect + github.com/metalmatze/signal v0.0.0-20210307161603-1c9aa721a97a // indirect github.com/minio/md5-simd v1.1.2 // indirect + github.com/minio/minio-go/v7 v7.0.80 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mozillazg/go-httpheader v0.2.1 // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/ncw/swift v1.0.53 // indirect + github.com/onsi/ginkgo v1.16.5 // indirect + github.com/opencontainers/runtime-spec v1.0.2 // indirect + github.com/opentracing-contrib/go-grpc v0.0.0-20210225150812-73cb765af46e // indirect + github.com/opentracing-contrib/go-stdlib v1.0.0 // indirect github.com/oracle/oci-go-sdk/v65 v65.41.1 // indirect + github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/common/sigv4 v0.1.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect - github.com/redis/rueidis v1.0.45-alpha.1 github.com/rivo/uniseg v0.2.0 // indirect github.com/rs/xid v1.6.0 // indirect github.com/santhosh-tekuri/jsonschema v1.2.4 // indirect + github.com/sercand/kuberesolver/v4 v4.0.0 // indirect github.com/shirou/gopsutil/v3 v3.22.9 // indirect github.com/sirupsen/logrus v1.9.3 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect @@ -260,26 +229,44 @@ require ( github.com/tencentyun/cos-go-sdk-v5 v0.7.40 // indirect github.com/tklauser/go-sysconf v0.3.10 // indirect github.com/tklauser/numcpus v0.4.0 // indirect + github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/weaveworks/promrus v1.2.0 // indirect github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect github.com/yusufpapurcu/wmi v1.2.2 // indirect + github.com/zhangyunhao116/umap v0.0.0-20221211160557-cb7705fafa39 // indirect go.elastic.co/apm/module/apmhttp v1.15.0 // indirect go.elastic.co/fastjson v1.1.0 // indirect go.mongodb.org/mongo-driver v1.14.0 // indirect go.opencensus.io v0.24.0 // indirect + go.opentelemetry.io/collector/pdata v1.14.1 // indirect + go.opentelemetry.io/collector/semconv v0.108.1 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect go.opentelemetry.io/contrib/propagators/aws v1.29.0 // indirect go.opentelemetry.io/contrib/propagators/b3 v1.29.0 // indirect go.opentelemetry.io/contrib/propagators/jaeger v1.29.0 // indirect + go.opentelemetry.io/contrib/propagators/ot v1.29.0 // indirect go.opentelemetry.io/otel/metric v1.31.0 // indirect go.opentelemetry.io/proto/otlp v1.3.1 // indirect go.uber.org/multierr v1.11.0 // indirect + go4.org/unsafe/assume-no-moving-gc v0.0.0-20230525183740-e7c30c78aeb2 // indirect + golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect + golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect golang.org/x/mod v0.21.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/tools v0.24.0 // indirect gonum.org/v1/gonum v0.15.0 // indirect - google.golang.org/protobuf v1.35.1 + google.golang.org/api v0.195.0 // indirect + google.golang.org/genproto v0.0.0-20240823204242-4ba0660f739c // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect howett.net/plist v0.0.0-20181124034731-591f970eefbb // indirect + k8s.io/apimachinery v0.31.1 // indirect + k8s.io/client-go v0.31.0 // indirect + k8s.io/klog/v2 v2.130.1 // indirect + k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect + zenhack.net/go/util v0.0.0-20230414204917-531d38494cf5 // indirect ) replace (