Skip to content

Commit

Permalink
Fix sending metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Dec 17, 2024
1 parent e100659 commit 6a1a9f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion archives/archives.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 989 in archives/archives.go

View check run for this annotation

Codecov / codecov/patch

archives/archives.go#L989

Added line #L989 was not covered by tests
}
cancel()

return nil
}

0 comments on commit 6a1a9f6

Please sign in to comment.