lib/fnordmetric/worker.rb in fnordmetric-0.6.3 vs lib/fnordmetric/worker.rb in fnordmetric-0.6.4

- old
+ new

@@ -72,9 +72,11 @@ def namespace(key) (@namespaces[key] || @namespaces.first.last).clone end def parse_json(data) - Yajl::Parser.new(:symbolize_keys => true).parse(data) + event = Yajl::Parser.new(:symbolize_keys => true).parse(data) + event[:_namespace] = event[:_namespace].to_sym if event[:_namespace] + event end end