Giter VIP home page Giter VIP logo

sentry-tiny's Introduction

sentry-tiny

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

GitHub sentry tiny ClojarsDownloads GitHub release (latest by date) GitHub Release Date GitHub tag (latest by date) GitHub last commit

Usage

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

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

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))
        "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

sentry-tiny's People

Contributors

onetom avatar source-c avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

onetom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.