Hi all, I'm using ring-instrument
and am hitting the following error:
Wrong number of args (3) passed to: instrument/eval25027/instrument--25028/fn--25029
I basically added ring-instrument to this proj: https://github.com/metosin/c2
@mping c2 uses ring-async, which requires middleware to be 3-arity. ring-instrument
doesn’t support that I guess? Where is the code for it?
@ikitommi ring instrument is here: https://github.com/metrics-clojure/metrics-clojure/blob/master/metrics-clojure-ring/src/metrics/ring/instrument.clj
I’m not familiar with ring-async
@mping yeah, it's sync only. Adding async support is easy, here's an example: https://github.com/ring-clojure/ring/wiki/Concepts#middleware
if you don't need async, just change :async?
to false in project.clj
I’ll take a look, thanks for the tips!