lib/fnordmetric/namespace.rb in fnordmetric-1.2.1 vs lib/fnordmetric/namespace.rb in fnordmetric-1.2.4
- old
+ new
@@ -36,9 +36,15 @@
if event[:_session]
event[:_session_key] = announce_to_session(event).session_key
end
+ if event[:_type].to_sym == :_enterprise
+ ctx = FnordMetric::Context.new(opts, FnordMetric::Enterprise::CompatibilityHandler)
+ ctx.call(event, @redis, self)
+ return self
+ end
+
if FnordMetric::ZeroConfigGauge::TYPES.include?(event[:_type].to_sym)
ctx = FnordMetric::Context.new(opts, FnordMetric::ZeroConfigGauge::Handler)
ctx.call(event, @redis, self)
return self
end