Liking cljdoc? Tell your friends :D

reporter: event, errors and metric reporting component

Build Status Clojars Project

The reporter component makes it easy to wire-in support for the following in your components:

  • Event reporting to riemann
  • Metric reporting with metrics with support for JMX, Riemann and Console output
  • Error captures to sentry

Reporter provides a component in order to be declared as a dependency in other components.

Usage

[exoscale/reporter "0.1.40"]

Changelog

0.1.40

  • Prometheus output
  • Log exceptions in capture! even if the sentry dsn is not configured.

0.1.39

  • Fix 0.1.38

0.1.38

  • Fix stop! to accept a context rather than an alias

0.1.37

  • Updated Clojure to 1.10.0
  • Updated Component to 0.4.0

0.1.36

  • Updated raven dependency to 0.4.6

0.1.35

  • Add slf4j as a destination (#28)
  • Extract build-metrics-reporter from build-metrics-reporters (#26)
  • Replace when + not with when-not (#25)

0.1.34

  • Updated raven dependency to 0.4.5

0.1.33

  • Updated raven dependency to 0.4.4

0.1.32

  • Added support for multiple aleph options.

0.1.31

  • Updated raven dependency to 0.4.2
  • Added support for passing aleph connection pools to raven.

0.1.27

  • Updated raven dependency to 0.3.1

0.1.26

  • Allow multiple Riemann events
  • Sentry events now log the Sentry UUID
  • Switched to Raven 0.3.0

0.1.25

  • Fixed arity bug in forwarding tags to Raven

0.1.24

  • Added support for new raven (capture!) arity
  • Switched to raven 0.2.0

0.1.22

  • Dependency updates

0.1.15

  • Bump to metrics-clojure 2.8.0
  • No more reflection

0.1.13

  • Make uncaught exception handler optional.
  • Start a registry, even with no reporters configured.

Configuring

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.

Using

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]))

Redistribution

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 & Mathieu Corbin
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close