Skip to content

Commit

Permalink
gundeck: Reintroduce http metrics for public endpoints
Browse files Browse the repository at this point in the history
Broken during servantification: #2769
  • Loading branch information
akshaymankar committed Jul 9, 2024
1 parent 7cee02b commit ad4f419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/3-bug-fixes/gundeck-metrics
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gundeck: Reintroduce http metrics for public endpoints
3 changes: 1 addition & 2 deletions services/gundeck/src/Gundeck/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import Control.Exception (finally)
import Control.Lens ((.~), (^.))
import Control.Monad.Extra
import Data.Metrics.AWS (gaugeTokenRemaing)
import Data.Metrics.Middleware.Prometheus (waiPrometheusMiddleware)
import Data.Proxy (Proxy (Proxy))
import Data.Text (unpack)
import Database.Redis qualified as Redis
Expand Down Expand Up @@ -84,7 +83,7 @@ run o = do
middleware e =
versionMiddleware (foldMap expandVersionExp (o ^. settings . disabledAPIVersions))
. requestIdMiddleware (e ^. applog) defaultRequestIdHeaderName
. waiPrometheusMiddleware sitemap
. servantPlusWAIPrometheusMiddleware sitemap (Proxy @CombinedAPI)
. GZip.gunzip
. GZip.gzip GZip.def
. catchErrors (e ^. applog) defaultRequestIdHeaderName
Expand Down

0 comments on commit ad4f419

Please sign in to comment.