Skip to content

Commit

Permalink
drop COMPOSE_EXPERIMENTAL_OTEL as docker/cli has opentelemetry in
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof authored and glours committed May 24, 2024
1 parent 2ed40e8 commit 1adc4cb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"errors"
"fmt"
"os"
"strconv"
"strings"

"github.com/docker/compose/v2/internal"
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 1adc4cb

Please sign in to comment.