1
0
Эх сурвалжийг харах

reduce timeout of the Otel tracing command

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 1 жил өмнө
parent
commit
4f97edf355

+ 1 - 1
cmd/cmdtrace/cmd_span.go

@@ -104,7 +104,7 @@ func wrapRunE(c *cobra.Command, cmdSpan trace.Span, tracingShutdown tracing.Shut
 		if tracingShutdown != nil {
 			// use background for root context because the cmd's context might have
 			// been canceled already
-			ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
+			ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
 			defer cancel()
 			// TODO(milas): add an env var to enable logging from the
 			// OTel components for debugging purposes

+ 1 - 1
internal/tracing/docker_context.go

@@ -63,7 +63,7 @@ func traceClientFromDockerContext(dockerCli command.Cli, otelEnv envMap) (otlptr
 		}
 	}
 
-	dialCtx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
+	dialCtx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
 	defer cancel()
 	conn, err := grpc.DialContext(
 		dialCtx,