Sha256: cd5ff085ceb926e80e192d39c147dac9afef7a0667af154f3aeca05c6fdcd9c5
Contents?: true
Size: 658 Bytes
Versions: 14
Compression:
Stored size: 658 Bytes
Contents
require 'honeybadger/plugin' require 'honeybadger/util/lambda' module Honeybadger module Plugins # @api private Plugin.register :lambda do requirement { Util::Lambda.lambda_execution? } execution do config[:sync] = true (config[:before_notify] ||= []) << lambda do |notice| data = Util::Lambda.normalized_data notice.component = data["function"] notice.action = data["handler"] notice.details["Lambda Details"] = data if (trace_id = Util::Lambda.trace_id) notice.context[:lambda_trace_id] = trace_id end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems