Liking cljdoc? Tell your friends :D

raven-clj.core


captureclj

(capture dsn event-info)

Send a message to a Sentry server. event-info is a map that should contain a :message key and optional keys found at https://docs.getsentry.com/hosted/clientdev/#building-the-json-packet

Send a message to a Sentry server.
event-info is a map that should contain a :message key and optional
keys found at https://docs.getsentry.com/hosted/clientdev/#building-the-json-packet
sourceraw docstring

install-uncaught-exception-handler!clj

(install-uncaught-exception-handler!
  dsn
  {:keys [packet-transform app-namespaces handler]
   :or {packet-transform identity
        handler (fn default-uncaught-handler
                    [thread throwable]
                    (println (format "Uncaught exception on thread %s"
                                     (.getName thread)))
                    (.printStackTrace throwable))}})

Install an uncaught exception handler that captures exceptions.

Available options:

  • :packet-transform can be used to modify the event before it is sent. Useful to insert release information, tags, etc.
  • :app-namespaces will get passed to raven-clj.interfaces/stacktrace.
  • :handler will be called with the thread and throwable. Default implementation prints.
Install an uncaught exception handler that `capture`s exceptions.

Available options:
- `:packet-transform` can be used to modify the event before it is sent. Useful to insert release information, tags, etc.
- `:app-namespaces` will get passed to `raven-clj.interfaces/stacktrace`.
- `:handler` will be called with the thread and throwable. Default implementation prints.
sourceraw docstring

make-sentry-headerclj

(make-sentry-header ts key secret)
source

make-sentry-urlclj

(make-sentry-url uri project-id)
source

parse-dsnclj

(parse-dsn dsn)
source

send-packetclj

(send-packet {:keys [ts uri project-id key secret] :as packet-info})
source

versionclj

(version)
source

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

× close