Module: ActiveSupport

Defined in:
lib/dm-rails/railties/log_listener.rb

Overview

TODO This needs to be fixed upstream in active_support/notifications/instrumenter.rb

We need to monkeypatch this for now, because the original implementation hardcodes the duration to the time elapsed between start and end of the event. The current upstream implementation is included here for reference:

def duration
  @duration ||= 1000.0 * (@end - @time)
end

It should be safe to assume that explicitly provided duration information should be at least as precise as the current generic solution, if not more (as in our specific case).

Defined Under Namespace

Modules: Notifications