mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00

Add the service instance id to the resource attributes to prevent downstream OTEL processors and exporters from thinking that the CLI invocations are a single process that keeps restarting. The unique id can be removed through downstream aggregation to prevent cardinality issues, but we need some way to tell OTEL that it shouldn't reset the counters. Move the check for the experimental flag to its own package and then use that invocation to prevent creating exporters so metrics are disabled completely. This makes it so we don't have to check for the experimental flag in every place we add metrics until we decide to make metrics stable in general. This also moves the OTEL initialization to a `util/metricutil` package to be more consistent with the existing util naming and to differentiate it from the upstream `metric` name. Using both `metrics` and `metric` as import names was confusing since `metric` was an upstream dependency and `metrics` was a local utility. `metricutil` matches with the existing utilities and makes clear that it isn't a spelling mistake. The record version metric has been removed since we weren't planning on keeping that metric anyway and most of the information is now included in the instrumentation library name and version. That function is included as a utility in the `otel/sdk/metric` package to retrieve the appropriate meter from the meter provider. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
173 lines
8.4 KiB
Modula-2
173 lines
8.4 KiB
Modula-2
module github.com/docker/buildx
|
|
|
|
go 1.21
|
|
|
|
require (
|
|
github.com/Masterminds/semver/v3 v3.2.1
|
|
github.com/aws/aws-sdk-go-v2/config v1.18.16
|
|
github.com/compose-spec/compose-go v1.20.0
|
|
github.com/containerd/console v1.0.3
|
|
github.com/containerd/containerd v1.7.12
|
|
github.com/containerd/continuity v0.4.2
|
|
github.com/containerd/log v0.1.0
|
|
github.com/containerd/typeurl/v2 v2.1.1
|
|
github.com/creack/pty v1.1.18
|
|
github.com/distribution/reference v0.5.0
|
|
github.com/docker/cli v25.0.1+incompatible
|
|
github.com/docker/cli-docs-tool v0.6.0
|
|
github.com/docker/docker v25.0.1+incompatible
|
|
github.com/docker/go-units v0.5.0
|
|
github.com/gofrs/flock v0.8.1
|
|
github.com/gogo/protobuf v1.3.2
|
|
github.com/golang/protobuf v1.5.3
|
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
|
|
github.com/google/uuid v1.5.0
|
|
github.com/hashicorp/go-cty-funcs v0.0.0-20230405223818-a090f58aa992
|
|
github.com/hashicorp/hcl/v2 v2.19.1
|
|
github.com/moby/buildkit v0.13.0-beta1.0.20240126101002-6bd81372ad6f // master (v0.13.0-dev)
|
|
github.com/moby/sys/mountinfo v0.7.1
|
|
github.com/moby/sys/signal v0.7.0
|
|
github.com/morikuni/aec v1.0.0
|
|
github.com/opencontainers/go-digest v1.0.0
|
|
github.com/opencontainers/image-spec v1.1.0-rc5
|
|
github.com/pelletier/go-toml v1.9.5
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/serialx/hashring v0.0.0-20190422032157-8b2912629002
|
|
github.com/sirupsen/logrus v1.9.3
|
|
github.com/spf13/cobra v1.7.0
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.8.4
|
|
github.com/zclconf/go-cty v1.14.1
|
|
go.opentelemetry.io/otel v1.19.0
|
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.42.0
|
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.42.0
|
|
go.opentelemetry.io/otel/metric v1.19.0
|
|
go.opentelemetry.io/otel/sdk v1.19.0
|
|
go.opentelemetry.io/otel/sdk/metric v1.19.0
|
|
go.opentelemetry.io/otel/trace v1.19.0
|
|
golang.org/x/mod v0.13.0
|
|
golang.org/x/sync v0.4.0
|
|
golang.org/x/sys v0.16.0
|
|
golang.org/x/term v0.15.0
|
|
google.golang.org/grpc v1.58.3
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
k8s.io/api v0.26.7
|
|
k8s.io/apimachinery v0.26.7
|
|
k8s.io/apiserver v0.26.7
|
|
k8s.io/client-go v0.26.7
|
|
)
|
|
|
|
require (
|
|
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
|
|
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
|
|
github.com/Microsoft/go-winio v0.6.1 // indirect
|
|
github.com/Microsoft/hcsshim v0.11.4 // indirect
|
|
github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d // indirect
|
|
github.com/agext/levenshtein v1.2.3 // indirect
|
|
github.com/apparentlymart/go-cidr v1.0.1 // indirect
|
|
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
|
|
github.com/aws/aws-sdk-go-v2 v1.17.6 // indirect
|
|
github.com/aws/aws-sdk-go-v2/credentials v1.13.16 // indirect
|
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.24 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.30 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.24 // indirect
|
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.31 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.24 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sso v1.12.5 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.5 // indirect
|
|
github.com/aws/aws-sdk-go-v2/service/sts v1.18.6 // indirect
|
|
github.com/aws/smithy-go v1.13.5 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/containerd/ttrpc v1.2.2 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/docker/distribution v2.8.2+incompatible // indirect
|
|
github.com/docker/docker-credential-helpers v0.8.0 // indirect
|
|
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c // indirect
|
|
github.com/docker/go-connections v0.5.0 // indirect
|
|
github.com/docker/go-metrics v0.0.1 // indirect
|
|
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
|
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
|
github.com/fvbommel/sortorder v1.0.1 // indirect
|
|
github.com/go-logr/logr v1.3.0 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-openapi/jsonpointer v0.19.5 // indirect
|
|
github.com/go-openapi/jsonreference v0.20.0 // indirect
|
|
github.com/go-openapi/swag v0.19.14 // indirect
|
|
github.com/gogo/googleapis v1.4.1 // indirect
|
|
github.com/google/gnostic v0.5.7-v3refs // indirect
|
|
github.com/google/go-cmp v0.6.0 // indirect
|
|
github.com/google/gofuzz v1.2.0 // indirect
|
|
github.com/gorilla/mux v1.8.0 // indirect
|
|
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
|
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
|
github.com/imdario/mergo v0.3.16 // indirect
|
|
github.com/in-toto/in-toto-golang v0.5.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/josharian/intern v1.0.0 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/klauspost/compress v1.17.4 // indirect
|
|
github.com/mailru/easyjson v0.7.6 // indirect
|
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
|
github.com/mattn/go-shellwords v1.0.12 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
|
github.com/miekg/pkcs11 v1.1.1 // indirect
|
|
github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect
|
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
github.com/moby/locker v1.0.1 // indirect
|
|
github.com/moby/patternmatcher v0.6.0 // indirect
|
|
github.com/moby/spdystream v0.2.0 // indirect
|
|
github.com/moby/sys/sequential v0.5.0 // indirect
|
|
github.com/moby/sys/user v0.1.0 // indirect
|
|
github.com/moby/term v0.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/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/prometheus/client_golang v1.16.0 // indirect
|
|
github.com/prometheus/client_model v0.4.0 // indirect
|
|
github.com/prometheus/common v0.42.0 // indirect
|
|
github.com/prometheus/procfs v0.10.1 // indirect
|
|
github.com/rivo/uniseg v0.2.0 // indirect
|
|
github.com/secure-systems-lab/go-securesystemslib v0.4.0 // indirect
|
|
github.com/shibumi/go-pathspec v1.3.0 // indirect
|
|
github.com/theupdateframework/notary v0.7.0 // indirect
|
|
github.com/tonistiigi/fsutil v0.0.0-20230825212630-f09800878302 // indirect
|
|
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
|
|
github.com/tonistiigi/vt100 v0.0.0-20230623042737-f9a4f7ef6531 // indirect
|
|
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
|
|
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
|
|
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.45.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.45.0 // indirect
|
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/prometheus v0.42.0 // indirect
|
|
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
|
|
golang.org/x/crypto v0.17.0 // indirect
|
|
golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1 // indirect
|
|
golang.org/x/net v0.17.0 // indirect
|
|
golang.org/x/oauth2 v0.10.0 // indirect
|
|
golang.org/x/text v0.14.0 // indirect
|
|
golang.org/x/time v0.3.0 // indirect
|
|
golang.org/x/tools v0.14.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
|
|
google.golang.org/protobuf v1.31.0 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
k8s.io/klog/v2 v2.90.1 // indirect
|
|
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
|
|
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
|
|
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
|
|
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
|
|
sigs.k8s.io/yaml v1.3.0 // indirect
|
|
)
|