def broadcast(event, benchmark)
      serialized = RequestSerializer.new(event[:request]).serialize.
        merge(benchmark.stats).
        merge(event.slice(:response, :metadata))
      if ActiveSupport::Notifications.notifier.listening?("coach.request")
        ActiveSupport::Deprecation.warn("The 'coach.request' event has been renamed " \
          "to 'request.coach' and the old name will be removed in a future version.")
        ActiveSupport::Notifications.publish("coach.request", serialized)
      end
      ActiveSupport::Notifications.publish("request.coach", serialized)
    end
def broadcast(event, benchmark)
      serialized = RequestSerializer.new(event[:request]).serialize.
        merge(benchmark.stats).
        merge(event.slice(:response, :metadata))
      if ActiveSupport::Notifications.notifier.listening?("coach.request")
        ActiveSupport::Deprecation.warn("The 'coach.request' event has been renamed " \
          "to 'request.coach' and the old name will be removed in a future version.")
        ActiveSupport::Notifications.publish("coach.request", serialized)
      end
      ActiveSupport::Notifications.publish("request.coach", serialized)
    end
Receives a handler.finish event, with processed benchmark. Publishes to
 request.coach notification.