lib/metry/rack/tracking.rb in metry-2.0.2 vs lib/metry/rack/tracking.rb in metry-2.0.3
- old
+ new
@@ -18,10 +18,10 @@
response = ::Rack::Response.new(body, status, headers)
save_visitor(response, visitor)
- unless env["metry.ignore"] == "true"
+ unless event["ignore"] == "true"
event["status"] = status.to_s
event["visitor"] = visitor['_id'].to_s
@storage.add_event(event)
end
\ No newline at end of file