prometheus: split off request timing information into separate mw
Tracks the worker api in addition to the composer api.
This commit is contained in:
parent
9594156baf
commit
2837b2a3ad
4 changed files with 31 additions and 9 deletions
|
|
@ -102,6 +102,7 @@ func (s *Server) Handler() http.Handler {
|
|||
|
||||
mws := []echo.MiddlewareFunc{
|
||||
prometheus.StatusMiddleware(prometheus.WorkerSubsystem),
|
||||
prometheus.HTTPDurationMiddleware(prometheus.WorkerSubsystem),
|
||||
}
|
||||
if s.config.JWTEnabled {
|
||||
mws = append(mws, auth.TenantChannelMiddleware(s.config.TenantProviderFields, api.HTTPError(api.ErrorTenantNotFound)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue