implemented observability
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
gitdomain "github.com/forgeo/forgebucket/internal/domain/git"
|
||||
"github.com/forgeo/forgebucket/internal/domain/gitops"
|
||||
"github.com/forgeo/forgebucket/internal/events"
|
||||
"github.com/forgeo/forgebucket/internal/observability"
|
||||
"github.com/forgeo/forgebucket/internal/models/migrations"
|
||||
"github.com/forgeo/forgebucket/web"
|
||||
)
|
||||
@@ -77,6 +78,8 @@ func main() {
|
||||
gitopsCtrl := gitops.NewController(engine, bus, cfg)
|
||||
go gitopsCtrl.Start(ciCtx)
|
||||
|
||||
go observability.StartNATSWatcher(ciCtx, bus)
|
||||
|
||||
handler := api.New(cfg, engine, store, bus, cfg.ArtifactRoot, web.FS())
|
||||
|
||||
srv := &http.Server{
|
||||
|
||||
Reference in New Issue
Block a user