Skip to content

Commit

Permalink
delay test metrics by two minutes
Browse files Browse the repository at this point in the history
This also provides evidence for the hypothesis that we're just
incrementing before the boot.

Updates AUT-393
Updates AUT-199
  • Loading branch information
jmhodges committed Jan 14, 2025
1 parent 0c16f44 commit 90fdd7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,12 @@ func run(conf configuration, listen string, debug bool) {
router.PathPrefix(prefix).Handler(http.StripPrefix(prefix, http.FileServer(http.Dir(parsedURL.Path))))
}

ag.stats.Incr(foobarTestCounterName, []string{"statsd:yes"}, 1)
foobarTestCounter.Inc()
promOnlyFoobarTestCounterName.Inc()
go func() {
time.Sleep(2 * time.Minute)
ag.stats.Incr(foobarTestCounterName, []string{"statsd:yes"}, 1)
foobarTestCounter.Inc()
promOnlyFoobarTestCounterName.Inc()
}()

if conf.DebugServer.Listen != "" {
log.Infof("starting debug server on %s", conf.DebugServer.Listen)
Expand Down

0 comments on commit 90fdd7b

Please sign in to comment.