Fork of A Clojure interface to Sentry.
[org.clojars.hcarvalhoalves/raven-clj "1.8.0"]
The capture
function is a general use function that could be placed throughout your Clojure code to log information to your Sentry server.
(def dsn "https://b70a31b3510c4cf793964a185cfe1fd0:b7d80b520139450f903720eb7991bf3d@example.com/1")
(capture dsn {:message "Test Exception Message"
:tags {:version "1.0"}
:logger "main-logger"
:extra {:my-key 1
:some-other-value "foo bar"}})
;; Associate stacktrace information to event, optionally passing your app's namespaces as the final arg to stacktrace.
(capture dsn
(-> {:message "Test Stacktrace Exception"}
(interfaces/stacktrace (Exception.) ["myapp.ns"])))
Please refer to Building the JSON Packet for more information on what attributes are allowed within the packet sent to Sentry.
Copyright © 2013-2015 Seth Buntin Copyright © 2016 Henrique Carvalho Alves
Distributed under the Eclipse Public License, the same as Clojure.