From b039967ae67f823da1e517817d1f3a5d81d9e338 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Wed, 12 Oct 2022 14:29:54 +0200 Subject: [PATCH] bump context timeout to 10s Signed-off-by: odubajDT --- scheduler/cmd/scheduler/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/cmd/scheduler/main.go b/scheduler/cmd/scheduler/main.go index be86765a9e..887c1bbdae 100644 --- a/scheduler/cmd/scheduler/main.go +++ b/scheduler/cmd/scheduler/main.go @@ -124,7 +124,7 @@ func newStdOutExporter() (sdktrace.SpanExporter, error) { } func newOTelExporter(env envConfig) (sdktrace.SpanExporter, error) { - ctx, cancel := context.WithTimeout(context.TODO(), 3*time.Second) + ctx, cancel := context.WithTimeout(context.TODO(), 10*time.Second) defer cancel() _, err := net.DialTimeout("tcp", env.OTelCollectorURL, 2*time.Second)