mirror of
https://github.com/docker/compose.git
synced 2025-07-21 04:34:38 +02:00
drop COMPOSE_EXPERIMENTAL_OTEL as docker/cli has opentelemetry in
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
2ed40e8042
commit
1adc4cb16f
@ -21,7 +21,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/docker/compose/v2/internal"
|
"github.com/docker/compose/v2/internal"
|
||||||
@ -64,11 +63,6 @@ type envMap map[string]string
|
|||||||
func InitTracing(dockerCli command.Cli) (ShutdownFunc, error) {
|
func InitTracing(dockerCli command.Cli) (ShutdownFunc, error) {
|
||||||
// set global propagator to tracecontext (the default is no-op).
|
// set global propagator to tracecontext (the default is no-op).
|
||||||
otel.SetTextMapPropagator(propagation.TraceContext{})
|
otel.SetTextMapPropagator(propagation.TraceContext{})
|
||||||
|
|
||||||
if v, _ := strconv.ParseBool(os.Getenv("COMPOSE_EXPERIMENTAL_OTEL")); !v {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return InitProvider(dockerCli)
|
return InitProvider(dockerCli)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user