lib/lamby/config.rb in lamby-5.0.0 vs lib/lamby/config.rb in lamby-5.1.0

- old
+ new

@@ -39,10 +39,12 @@ @rack_app = app end def initialize_defaults @rack_app = nil + @cold_start_metrics = false + @metrics_app_name = nil @event_bridge_handler = lambda { |event, context| puts(event) } end def event_bridge_handler @event_bridge_handler @@ -60,9 +62,25 @@ @handled_proc ||= Proc.new { |_event, _context| } end def handled_proc=(proc) @handled_proc = proc + end + + def cold_start_metrics? + @cold_start_metrics + end + + def cold_start_metrics=(bool) + @cold_start_metrics = bool + end + + def metrics_app_name + @metrics_app_name + end + + def metrics_app_name=(name) + @metrics_app_name = name end end end