mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-11-04 01:53:42 +08:00
simplify signal handling for cobra context
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
4
vendor/github.com/moby/buildkit/util/tracing/env/traceenv.go
generated
vendored
4
vendor/github.com/moby/buildkit/util/tracing/env/traceenv.go
generated
vendored
@@ -14,10 +14,10 @@ const (
|
||||
)
|
||||
|
||||
func init() {
|
||||
appcontext.Register(InitContext)
|
||||
appcontext.Register(initContext)
|
||||
}
|
||||
|
||||
func InitContext(ctx context.Context) context.Context {
|
||||
func initContext(ctx context.Context) context.Context {
|
||||
// open-telemetry/opentelemetry-specification#740
|
||||
parent := os.Getenv("TRACEPARENT")
|
||||
state := os.Getenv("TRACESTATE")
|
||||
|
||||
Reference in New Issue
Block a user