From 6a1a9f6cd581fec9b67f7eabc392c4d399dde848 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Tue, 17 Dec 2024 09:41:24 -0500 Subject: [PATCH] Fix sending metrics --- archives/archives.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archives/archives.go b/archives/archives.go index 35f5503..40159ee 100644 --- a/archives/archives.go +++ b/archives/archives.go @@ -984,9 +984,11 @@ func ArchiveActiveOrgs(rt *runtime.Runtime) error { cwatch.Datum("RollupsFailed", float64(totalRunsRollupsFailed), types.StandardUnitCount, runsDim), } + ctx, cancel = context.WithTimeout(context.Background(), time.Minute) if err = rt.CW.Send(ctx, metrics...); err != nil { - slog.Error("error putting metrics", "error", err) + slog.Error("error sending metrics", "error", err) } + cancel() return nil }