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.42"]
spootnik.reporter
namespace.capture!
even if the sentry dsn is not configured.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
.
Start the component with
(spootnik.reporter/initialize! reporter-config)
Once started, the spootnik.reporter/reporter
variable will contain your component. You can then 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]))
The spootnik.reporter
namespace contains helper functions to interact with the reporter instance.
Copyright © 2016 Pierre-Yves Ritschard pyr@spootnik.org, MIT/ISC License.
Can you improve this documentation? These fine people already did:
Pierre-Yves Ritschard, Yoan Blanc, Chris Glass, mcorbin, Aaron Groom & Mathieu CorbinEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close