aws_lambda_app
v2.0.1
Published
Wraps aws_lambda_handler providing an airbrake error handler.
Downloads
4
Readme
#Aws Lambda App
Wraps aws_lambda_handler providing an airbrake error handler.
Requires the following ENV variables.
AIRBRAKE_KEY - api key
FUNCTION_NAME - name of lambda handler to tag the error object with
#Example
'use strict';
require('dotenv').load();
var lambdaHandler = require('aws_lambda_handler');
exports.handler = lambdaHandler(function(message, callback) {
// Triggers airbrake.
callback(new Error('Boom!'));
});