Skip to content

Repository files navigation

sentry-tiny

A Clojure library designed to cover basic needs of pushing exceptions into Sentry. We should prize every moment, isn’t it?

GitHubsentry tinyClojarsDownloadsGitHub release (latest by date)GitHub Release DateGitHub tag (latest by date)GitHub last commit

Usage

Add the following to your Leiningen’sproject.clj:

[net.tbt-post/sentry-tiny "0.1.14"]

and just use it to catch your exception:

(require '[sentry-tiny.core :as stc])
(defdsn"http://<digest>@<sentry>/<id>")
(defncatch [ns _ _ ^Throwable e]
(-> dsn
stc/parse-dsn
(stc/capture (stc/e->evi [(strns)] e))))

or to just send a message

(defnmessage [msg]
(-> dsn
stc/parse-dsn
(stc/capture
(stc/e->evi [(str *ns*)]
(RuntimeException. msg))
"warning")))

You may eventually use it as a replacement inside of your web app router.

Manual Build

$ lein install

License

Copyright © 2017-2021

Distributed under the Apache License v 2.0

About

Tiny & Lightweight Clojure interface for catching to Sentry

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages