mirror of https://github.com/docker/buildx.git
progress: remove the experimental label from progress metrics
Removes the experimental label from progress metrics. User-metrics themselves are still experimental so this is still blocked behind the experimental flag, but this will allow the docker otlp endpoint to receive these metrics. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
This commit is contained in:
parent
4af0ed5159
commit
4999908fbc
|
@ -6,7 +6,6 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/containerd/console"
|
"github.com/containerd/console"
|
||||||
"github.com/docker/buildx/util/confutil"
|
|
||||||
"github.com/docker/buildx/util/logutil"
|
"github.com/docker/buildx/util/logutil"
|
||||||
"github.com/moby/buildkit/client"
|
"github.com/moby/buildkit/client"
|
||||||
"github.com/moby/buildkit/util/progress/progressui"
|
"github.com/moby/buildkit/util/progress/progressui"
|
||||||
|
@ -176,9 +175,7 @@ func WithDesc(text string, console string) PrinterOpt {
|
||||||
|
|
||||||
func WithMetrics(mp metric.MeterProvider, attrs attribute.Set) PrinterOpt {
|
func WithMetrics(mp metric.MeterProvider, attrs attribute.Set) PrinterOpt {
|
||||||
return func(opt *printerOpts) {
|
return func(opt *printerOpts) {
|
||||||
if confutil.IsExperimental() {
|
opt.mw = newMetrics(mp, attrs)
|
||||||
opt.mw = newMetrics(mp, attrs)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue