(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
(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 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.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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close