Browse Source

drop COMPOSE_EXPERIMENTAL_OTEL as docker/cli has opentelemetry in

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 năm trước cách đây
mục cha
commit
1adc4cb16f
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      internal/tracing/tracing.go

+ 0 - 6
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)
 }