Thanks to visit codestin.com
Credit goes to github.com

Skip to content

source-c/sentry-tiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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?

sentry tiny

Usage

Add the following to your Leiningen’s project.clj:

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

and just use it to catch your exception:

(require '[sentry-tiny.core :as stc])

(def dsn "http://<digest>@<sentry>/<id>")

(defn catch [ns _ _ ^Throwable e]
  (-> dsn
      stc/parse-dsn
      (stc/capture (stc/e->evi [(str ns)] e))))

or to just send a message

(defn message [msg]
  (-> dsn
      stc/parse-dsn
      (stc/capture
        (stc/e->evi [(str *ns*)]
                    (RuntimeException. msg)))))

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

Manual Build

$ lein install

License

Copyright © 2017-2018

Distributed under the Apache License v 2.0

About

Tiny & Lightweight Clojure interface for catching to Sentry

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Contributors 2

  •  
  •