onyx.monitoring.measurements

emit-count

(emit-count event-type monitoring cnt)

emit-latency

(emit-latency event-type monitoring f)

emit-latency-2

macro

(emit-latency-2 monitoring event-name & body)
Start a test env in a way that shuts down after body is completed. 
Useful for running tests that can be killed, and re-run without bouncing the repl.

emit-latency-value

(emit-latency-value event-type monitoring elapsed)

measure-latency

(measure-latency f g)
Calls f, and passing the amount of time it took
to call and return f in milliseconds to g.
Returns the value that calling f returned.