mirror of https://github.com/docker/compose.git
trace: do not block connecting to OTLP endpoint (#10882)
This was left over from debugging, but we should not block. OTel will handle the connection in the background. Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
parent
fd8ab2f7ac
commit
0be8e4a676
|
@ -69,7 +69,6 @@ func traceClientFromDockerContext(dockerCli command.Cli, otelEnv envMap) (otlptr
|
||||||
cfg.Endpoint,
|
cfg.Endpoint,
|
||||||
grpc.WithContextDialer(DialInMemory),
|
grpc.WithContextDialer(DialInMemory),
|
||||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||||
grpc.WithBlock(),
|
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("initializing otel connection from docker context metadata: %v", err)
|
return nil, fmt.Errorf("initializing otel connection from docker context metadata: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue