lib/fluent/plugin/out_dd.rb in fluent-plugin-dd-0.1.1 vs lib/fluent/plugin/out_dd.rb in fluent-plugin-dd-0.1.2
- old
+ new
@@ -61,12 +61,12 @@
value = record['value']
[time, value]
end
options = {}
- options['tags'] = tag.split(',').map {|i| i.strip } if tag
- options['host'] = host if host
- options['type'] = type if type
+ options[:tags] = tag.split(',').map {|i| i.strip } if tag
+ options[:host] = host if host
+ options[:type] = type if type
@dog.emit_points(metric, points, options)
}
end
end