From 90673272fb92d32190e5649ff370c2e3b152ce47 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 30 Jan 2024 09:19:45 -0800 Subject: [PATCH] Increase OpenTelemetry collector timeout from 5 to 30 seconds (#260) --- internal/infra/open_telemetry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/infra/open_telemetry.go b/internal/infra/open_telemetry.go index 1e25869..329191a 100644 --- a/internal/infra/open_telemetry.go +++ b/internal/infra/open_telemetry.go @@ -106,7 +106,7 @@ func NewCollector(ctx context.Context, cli *client.Client, net *Networks, params // Close stops and removes the container. func (c *Collector) Close() error { - timeout := 5 + timeout := 30 _ = c.cli.ContainerStop(context.Background(), c.containerID, container.StopOptions{Timeout: &timeout}) err := c.cli.ContainerRemove(context.Background(), c.containerID, types.ContainerRemoveOptions{Force: true})