The reporter component makes it easy to wire-in support for the following in your components:
Reporter provides a component in order to be declared as a dependency in other components.
[exoscale/reporter "0.1.39"]
Reporter exposes a schema if you wish to validate config, simply pull-in schema.core and either use spootnik.reporter/config-schema
as an argument to schema.core/validate
or use the handy function spootnik.reporter/config-validator
.
Once the component has been started, you can use the following signatures:
(defprotocol RiemannSink
(send! [this e]))
(defprotocol SentrySink
(capture! [this e]))
(defprotocol MetricHolder
(instrument! [this prefix])
(build! [this type alias] [this type alias f])
(inc! [this alias] [this alias v])
(dec! [this alias] [this alias v])
(mark! [this alias])
(update! [this alias v])
(time-fn! [this alias f])
(start! [this alias])
(stop! [this alias]))
Copyright © 2016 Pierre-Yves Ritschard pyr@spootnik.org, MIT/ISC License.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close