chore: record lifecycle duration metric to prometheus (#15279)

`autobuild_execution_duration_seconds` keeps track of how long autobuild
takes and exposes it via prometheus histogram
This commit is contained in:
Steven Masley
2024-10-30 10:20:47 -04:00
committed by GitHub
parent afacb07140
commit 144d3f3e3d
3 changed files with 24 additions and 2 deletions

View File

@ -335,6 +335,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can
ctx,
options.Database,
options.Pubsub,
prometheus.NewRegistry(),
&templateScheduleStore,
&auditor,
accessControlStore,