mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-29 08:57:44 +08:00
20 lines
398 B
Go
20 lines
398 B
Go
package main
|
|
|
|
import (
|
|
"github.com/moby/buildkit/util/tracing/detect"
|
|
"go.opentelemetry.io/otel"
|
|
|
|
_ "github.com/moby/buildkit/util/tracing/detect/delegated"
|
|
_ "github.com/moby/buildkit/util/tracing/env"
|
|
)
|
|
|
|
func init() {
|
|
detect.ServiceName = "buildx"
|
|
// do not log tracing errors to stdio
|
|
otel.SetErrorHandler(skipErrors{})
|
|
}
|
|
|
|
type skipErrors struct{}
|
|
|
|
func (skipErrors) Handle(err error) {}
|