Page 1 of 1

[Library] love-rollbar (Rollbar stacktrace/error reporting)

Posted: Sun Jun 07, 2015 12:10 am
by billiam
This library reports errors in your games to Rollbar, and is intended for use with games you distribute.

Rollbar is non-free, but allows 5,000 events per month at their free tier (and then just stops reporting).

URL: https://github.com/Billiam/love-rollbar

Current version: 0.1.0

Changelog:
[0.1.0] (2015-06-08)
- Report local variables in stacktrace frames. (https://github.com/Billiam/love-rollbar/issues/4)
- Allow library users to send custom data with exceptions(https://github.com/Billiam/love-rollbar/issues/3)
- Allow different log levels, logging of non-stacktrace data. (https://github.com/Billiam/love-rollbar/issues/2)

Status: This is very much in an alpha state.

Compatibility: Unsure. Luajit-request requires newer versions of curl (dlls for windows, see readme), but
I don't know about the support range for mac/linux. Let me know!

Installation: See readme: https://github.com/Billiam/love-rollbar ... /README.md

Rollbar demo: https://rollbar.com/demo/demo/

Usage:

Code: Select all

local Rollbar = require('vendor.love-rollbar')

function love.load()
  -- configure Rollbar
  Rollbar.access_token = 'your-api-token'
  -- optional, but helpful to distinguish between deployed code and testing code
  Rollbar.environment = 'development'
  -- optional, your game/app's version
  Rollbar.app_version = '0.0.0'
end

-- Submit errors to rollbar, and then
-- proceed with the normal LÖVE error behavior
local old_error = love.errhand
function love.errhand(message)
  Rollbar.error(message)
  old_error(message)
end
Example Rollbar Output:
2015-06-07_22-54-13.png
2015-06-07_22-54-13.png (58.81 KiB) Viewed 3437 times

Re: [Library] love-rollbar (Rollbar stacktrace/error reporti

Posted: Sun Jun 07, 2015 1:57 am
by bobbyjones
You really are pushing the use of luajit-request quite a bit lol.

Re: [Library] love-rollbar (Rollbar stacktrace/error reporti

Posted: Sun Jun 07, 2015 2:07 am
by billiam
bobbyjones wrote:You really are pushing the use of luajit-request quite a bit lol.
I get a commission every time I mention luajit-request. Luajit-request.

Re: [Library] love-rollbar (Rollbar stacktrace/error reporti

Posted: Sun Jun 07, 2015 2:12 am
by bobbyjones
Commission on the sale price of $0 is 0 dollars I think your employer tricked you pretty well.

Re: [Library] love-rollbar (Rollbar stacktrace/error reporti

Posted: Mon Jun 08, 2015 5:22 pm
by billiam
Rollbar kindly updated a couple of things on their end.
  • Stack traces now appear in most-recent-first order for Lua, with exceptions at the top.
  • Collapsing out-of-project code in stack traces now works as expected
I've added support for severity level reporting, and added some convenience methods (Rollbar.info, Rollbar.debug) for them.

Also, stack traces in rollbar now display local variables for each (lua) frame.

Re: [Library] love-rollbar (Rollbar stacktrace/error reporti

Posted: Tue Jun 09, 2015 1:31 pm
by SiENcE
Wow, this is really usefull. Is it possible to host the backend service on own hardware?

Re: [Library] love-rollbar (Rollbar stacktrace/error reporti

Posted: Tue Jun 09, 2015 3:23 pm
by billiam
SiENcE wrote:Wow, this is really usefull. Is it possible to host the backend service on own hardware?
Yes, but it has the word Enterprise in the title, and I suspect pricing would be a problem.
https://rollbar.com/enterprise/

Sentry (http://getsentry.com) is similar service, with a self hosting option though. It's possible that service could be added (or forked and added) if there's sufficient interest.