Skip to content

Commit 4f97edf

Browse files
gloursndeloof
authored andcommitted
reduce timeout of the Otel tracing command
Signed-off-by: Guillaume Lours <[email protected]>
1 parent f937e42 commit 4f97edf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/cmdtrace/cmd_span.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func wrapRunE(c *cobra.Command, cmdSpan trace.Span, tracingShutdown tracing.Shut
104104
if tracingShutdown != nil {
105105
// use background for root context because the cmd's context might have
106106
// been canceled already
107-
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
107+
ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
108108
defer cancel()
109109
// TODO(milas): add an env var to enable logging from the
110110
// OTel components for debugging purposes

internal/tracing/docker_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func traceClientFromDockerContext(dockerCli command.Cli, otelEnv envMap) (otlptr
6363
}
6464
}
6565

66-
dialCtx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
66+
dialCtx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
6767
defer cancel()
6868
conn, err := grpc.DialContext(
6969
dialCtx,

0 commit comments

Comments
 (0)