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"
|
||||
|
||||
"github.com/containerd/console"
|
||||
"github.com/docker/buildx/util/confutil"
|
||||
"github.com/docker/buildx/util/logutil"
|
||||
"github.com/moby/buildkit/client"
|
||||
"github.com/moby/buildkit/util/progress/progressui"
|
||||
|
@ -176,11 +175,9 @@ func WithDesc(text string, console string) PrinterOpt {
|
|||
|
||||
func WithMetrics(mp metric.MeterProvider, attrs attribute.Set) PrinterOpt {
|
||||
return func(opt *printerOpts) {
|
||||
if confutil.IsExperimental() {
|
||||
opt.mw = newMetrics(mp, attrs)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func WithOnClose(onclose func()) PrinterOpt {
|
||||
return func(opt *printerOpts) {
|
||||
|
|
Loading…
Reference in New Issue