KO
|
EN
gitlite — search
Search
#javascript
#python
#react
#windows
#security
#minecraft
#machine-learning
#hacktoberfest
#android
#open-source
#privacy
#git
raven-lua
★ 120
Open GitHub ↗
A Lua interface to Sentry
Download README (.md)
Explore Similar Repositories
example-csharp
:
Codecov: C# example repository
Fue
:
F# templating library with simple syntax designed for smooth work with F# types.
kripton
:
A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR.
hanzi-tools
:
Converts from Chinese characters to pinyin, between simplified and traditional, and does word segmentation.
ts-minify
:
A tool to aid minification of Typescript code, using Typescript's type information.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
raven-lua
?
Download (.md)
raven-lua ========= [](https://travis-ci.org/cloudflare/raven-lua) A small Lua interface to [Sentry](https://sentry.readthedocs.org/) that also has a helpful wrapper function `call()` that takes any arbitrary Lua function (with arguments) and executes it, traps any errors and reports it automatically to Sentry. Synopsis ======== ```lua local raven = require "raven" -- http://pub:secret@127.0.0.1:8080/sentry/proj-id local rvn = raven.new { -- multiple senders are available for different networking backends, -- doing a custom one is also very easy. sender = require("raven.senders.luasocket").new { dsn = "http://pub:secret@127.0.0.1:8080/sentry/proj-id", }, tags = { foo = "bar" }, } -- Send a message to sentry local id, err = rvn:captureMessage( "Sentry is a realtime event logging and aggregation platform.", { tags = { abc = "def" } } -- optional ) if not id then print(err) end -- Send an exception to sentry local exception = {{ ["type"]= "SyntaxError", ["value"]= "Wattttt!", ["module"]= "__builtins__" }} local id, err = rvn:captureException( exception, { tags = { abc = "def" } } -- optional ) if not id then print(err) end -- Catch an exception and send it to sentry function bad_func(n) return not_defined_func(n) end -- variable 'ok' should be false, and an exception will be sent to sentry local ok = rvn:call(bad_func, 1) ``` Documentation ============= See docs/index.html for more details. Prerequisites ============= To run the tests: ``` luarocks install lunit luarocks install lua-cjson luarocks install luaposix luarocks install luasocket luarocks install luasec make test ``` To generate the docs: ``` luarocks install ldoc make doc ```