This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-21
Channels
- # announcements (14)
- # aws (8)
- # babashka (3)
- # babashka-sci-dev (41)
- # beginners (78)
- # calva (15)
- # cider (9)
- # clj-commons (10)
- # clj-kondo (5)
- # cljs-dev (8)
- # clojure (47)
- # clojure-bay-area (3)
- # clojure-europe (13)
- # clojure-nl (2)
- # clojure-norway (15)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (20)
- # conjure (29)
- # cursive (4)
- # emacs (19)
- # events (3)
- # funcool (13)
- # hyperfiddle (16)
- # jobs (2)
- # lsp (4)
- # malli (13)
- # meander (1)
- # missionary (2)
- # nrepl (7)
- # off-topic (68)
- # other-languages (82)
- # polylith (1)
- # reagent (28)
- # reitit (12)
- # releases (3)
- # remote-jobs (5)
- # ring (27)
- # sci (6)
- # shadow-cljs (9)
- # spacemacs (2)
- # sql (10)
- # tools-deps (10)
- # vim (10)
Hi, is it possible to use the metrics-clojure ring integration with reitit? https://metrics-clojure.readthedocs.io/en/latest/ring.html https://metrics-clojure.readthedocs.io/en/latest/ring.html#:~:text=each%20individual%20type.-,Instrumenting%20a%20Ring%20App,-%C2%B6 (Instrumenting a Ring App)
seems to work as is.
Hi! Whilst I can't speak for metrics-clojure, I do have an example of using prometheus and clj-commons/iapetos here
and
Perhaps that may give you some clues if you wish to use metrics-clojure 🙂 In general, it should be doable.
yup, I just tried and it works
does it split the metrics per endpoint? or it gives you the metrics for all the endpoints together? (metrics-clojure splits it by request type (e.g. post, get, put))
Does the ordering of the middleware vector that you pass to ring/router as options: {:data {:middleware [...]}}
matter? https://github.com/metosin/reitit/blob/master/examples/ring-swagger/src/example/server.clj#L74. Are these order-sensitive?
yes they do!