From 4974db3dfd333d70bf2565d03bee583e5e086cb2 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 23 May 2024 17:03:49 +0200 Subject: [PATCH] drop COMPOSE_EXPERIMENTAL_OTEL as docker/cli has opentelemetry in Signed-off-by: Nicolas De Loof --- internal/tracing/tracing.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/tracing/tracing.go b/internal/tracing/tracing.go index 1ee0267641..3bee64abcf 100644 --- a/internal/tracing/tracing.go +++ b/internal/tracing/tracing.go @@ -21,7 +21,6 @@ import ( "errors" "fmt" "os" - "strconv" "strings" "github.com/docker/compose/v2/internal" @@ -64,11 +63,6 @@ type envMap map[string]string func InitTracing(dockerCli command.Cli) (ShutdownFunc, error) { // set global propagator to tracecontext (the default is no-op). otel.SetTextMapPropagator(propagation.TraceContext{}) - - if v, _ := strconv.ParseBool(os.Getenv("COMPOSE_EXPERIMENTAL_OTEL")); !v { - return nil, nil - } - return InitProvider(dockerCli) }