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

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
billiam
Prole
Posts: 16
Joined: Wed Jan 14, 2015 2:14 am

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

Post 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 3439 times
Last edited by billiam on Mon Jun 08, 2015 3:09 pm, edited 3 times in total.
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

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

Post by bobbyjones »

You really are pushing the use of luajit-request quite a bit lol.
billiam
Prole
Posts: 16
Joined: Wed Jan 14, 2015 2:14 am

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

Post 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.
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

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

Post by bobbyjones »

Commission on the sale price of $0 is 0 dollars I think your employer tricked you pretty well.
billiam
Prole
Posts: 16
Joined: Wed Jan 14, 2015 2:14 am

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

Post 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.
User avatar
SiENcE
Party member
Posts: 805
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

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

Post by SiENcE »

Wow, this is really usefull. Is it possible to host the backend service on own hardware?
billiam
Prole
Posts: 16
Joined: Wed Jan 14, 2015 2:14 am

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 3 guests