This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-24
Channels
- # beginners (113)
- # boot (9)
- # cider (6)
- # cljs-dev (33)
- # cljsjs (1)
- # clojure (73)
- # clojure-italy (4)
- # clojure-russia (6)
- # clojure-spec (13)
- # clojure-uk (21)
- # clojured (1)
- # clojurescript (79)
- # core-async (6)
- # core-logic (4)
- # datascript (5)
- # datomic (5)
- # duct (12)
- # events (1)
- # figwheel (9)
- # fulcro (143)
- # garden (2)
- # leiningen (1)
- # luminus (24)
- # off-topic (1)
- # parinfer (7)
- # protorepl (12)
- # re-frame (4)
- # reagent (32)
- # rum (1)
- # shadow-cljs (46)
- # spacemacs (4)
- # specter (27)
- # sql (6)
- # unrepl (3)
- # videos (1)
i want to time how long a request takes, my current strategy is to have a transducer on a chan that calls System/nanoTime and assign a :start-time with that value and then the callback itself calls nanoTime again and subtracts the :start-time assigning the :duration key to the final payload, it feels a bit clunky. Can anyone recommend an alternative?
I would stick with that, depending on what you want that kind of thing can end up a real rabbit hole
you might be able to do something neat with https://en.wikipedia.org/wiki/Little%27s_law#Finding_response_time if you just getting this monitoring, not actually reporting on each request how long it took