Skip to content

Commit

Permalink
Merge pull request #115 from nyaruka/metrics_fix
Browse files Browse the repository at this point in the history
Fix sending metrics
  • Loading branch information
rowanseymour authored Dec 17, 2024
2 parents e100659 + 6a1a9f6 commit f541985
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)
}
cancel()

return nil
}

0 comments on commit f541985

Please sign in to comment.