Skip to content

Commit

Permalink
bump context timeout to 10s
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Oct 12, 2022
1 parent b75cff4 commit b039967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/cmd/scheduler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b039967

Please sign in to comment.