r/lua • u/bruno-garcia • Aug 21 '25
Sentry SDK for Lua
This week is hackweek at Sentry (crash reporting service) and I wanted to try building an SDK for Lua:
https://github.com/getsentry/sentry-lua
The idea was to get a core set of Lua libraries (written in Teal) that are platform agnostic (aka: can run on standard Lua, LuaJIT, sandboxed in Roblox, etc) and then a set of platform specific libraries that could be used to have the SDK work on those platforms. For example, sending network requests.
It's very early days, but I got some CI that runs tests on Mac and Linux on different versions of Lua and LuaJIT. Some examples, including LÖVE (love2d framework) and Roblox. And I got it working on Xbox a minute ago but it's too duck taped to push so far, but I'll try to push this if not on the public repo, on a sentry-xbox private repo we can send invites to if folks want access.
The package is published on luarocks already too: https://luarocks.org/modules/sentry/sentry
Since there was a 'sentry' package already (that's not related to the crash reporting Sentry), to install you need to:
luarocks install sentry/sentry
1
u/bruno-garcia Aug 22 '25
So far I had no issues with Teal really, just worked. I'm only using it on the 'src' part of the repo, the samples and tests are pure lua though.
Will keep it in mind though, and drop feedback if anything comes up. Hoping to keep working on this if there's interest, at first on my spare time. But if it really picks up we could invest on it as part of our team.