lib/riemann/tools.rb in riemann-tools-0.2.7 vs lib/riemann/tools.rb in riemann-tools-0.2.8
- old
+ new
@@ -53,18 +53,18 @@
end
def report(event)
if options[:tag]
# Work around a bug with beefcake which can't take frozen strings.
- event[:tags] = options[:tag].map(&:dup)
+ event[:tags] = [*event.fetch(:tags, [])] + options[:tag].map(&:dup)
end
event[:ttl] ||= (options[:ttl] || (options[:interval] * 2))
if options[:event_host]
event[:host] = options[:event_host].dup
end
-
+
event = event.merge(attributes)
riemann << event
end