github.com/pdmccormick/importable-docker-buildx@v0.0.0-20240426161518-e47091289030/cmd/buildx/buildxcmd/tracing.go (about)

     1  package buildxcmd
     2  
     3  import (
     4  	"github.com/moby/buildkit/util/tracing/detect"
     5  	"go.opentelemetry.io/otel"
     6  
     7  	_ "github.com/moby/buildkit/util/tracing/detect/delegated"
     8  	_ "github.com/moby/buildkit/util/tracing/env"
     9  )
    10  
    11  func init() {
    12  	detect.ServiceName = "buildx"
    13  	// do not log tracing errors to stdio
    14  	otel.SetErrorHandler(skipErrors{})
    15  }
    16  
    17  type skipErrors struct{}
    18  
    19  func (skipErrors) Handle(err error) {}