Add instrumentation with prometheus
This commit is contained in:
parent
2a72154308
commit
f4ca9e2dbc
6 changed files with 138 additions and 32 deletions
8
main.go
8
main.go
|
@ -62,6 +62,10 @@ func main() {
|
|||
trantor.InitUpload(db, store)
|
||||
trantor.InitTasks(db, *loggerConfig)
|
||||
|
||||
trantor.InitRouter(db, sg, *assetsPath)
|
||||
log.Error(http.ListenAndServe(*httpAddr, nil))
|
||||
router := trantor.InitRouter(db, sg, *assetsPath)
|
||||
server := http.Server{
|
||||
Addr: *httpAddr,
|
||||
Handler: router,
|
||||
}
|
||||
log.Error(server.ListenAndServe())
|
||||
}
|
||||
|
|
Reference in a new issue