lib/timber/events/template_render.rb in timber-1.0.13 vs lib/timber/events/template_render.rb in timber-1.1.0

- old
+ new

@@ -9,18 +9,19 @@ def initialize(attributes) @message = attributes[:message] || raise(ArgumentError.new(":message is required")) @name = attributes[:name] || raise(ArgumentError.new(":name is required")) @time_ms = attributes[:time_ms] || raise(ArgumentError.new(":time_ms is required")) + @time_ms = @time_ms.round(6) end def to_hash {name: name, time_ms: time_ms} end alias to_h to_hash def as_json(_options = {}) - {:template_render => to_hash} + {:server_side_app => {:template_render => to_hash}} end end end end \ No newline at end of file