You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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) {}
|