[erlang-questions] [ANN] Lager-Airbrake

Roberto Ostinelli <>
Tue Apr 28 11:23:34 CEST 2015


I have a great pleasure to announce that today I’ve released Lager-Airbrake
notifier.

If you are already using the popular logging framework Lager[1] by Basho in
your application, you might consider having an easy drop in component that
will report the errors with the desired level of severity to AirBrake.
Lager-Airbrake works as a Lager backend, it is therefore fully integrated
with it, and easy to setup.

In your project’s rebar.config file, add lager_airbrake as a dependency:


{lager_airbrake, “.*”, {git, “
https://github.com/ostinelli/lager_airbrake.git“, “master”}}


Then include lager_airbrake_backend in your lager configuration:

%% Lager config
{lager, [

{handlers, [
%% Add Airbrake monitoring
{lager_airbrake_backend, [
{environment, "development"},
{api_key, "AIRBRAKE_API_KEY"},
{project_id, "AIRBRAKE_PROJECT_ID"},
{level, warning}
]},

[...]
]},

[...]
}


You’re done.

Lager-Airbrake will try to use some heuristics to optimize the notification
sent to Airbrake, so that errors can be easily differentiated. As you may
know, in Erlang it is sometimes difficult to separate the errors based on
their Type so some attempts have been done to address this reporting issue.

You can check Lager-Aibrake here:
https://github.com/ostinelli/lager_airbrake

Best,
r.


[1] https://github.com/basho/lager
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150428/d5c20f1f/attachment.html>


More information about the erlang-questions mailing list