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.
sentry config supports the following keys :dsn, :environment, :release, :tags
sentry-options are deprecatedexoscale/raven to io.sentry/sentry-clj
SENTRY_ env vars are no longer automatically forwardedraven-options renamed to sentry-options within spootnik.reporter.impl/Reporter signaturespootnik.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 PushGatewaySink
  (gauge! [this e])
  (counter! [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, Chris Glass, Yoan Blanc, mcorbin, Miguel Ping, Aaron Groom, arthura, tgrondier, Max Penet & Mathieu CorbinEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |