ho to display the key value in notification statsd ruby on rails
===

I am generating notifications from signin application in ruby on rails.
i have used statsd active support notification.
It is not displaying the key value please me in displaying key_value.

require 'statsd'
#$statsd = Statsd.new('127.0.0.1')

client = Statsd::Client.new(:hostname => "127.0.0.1", :port => 8125)

ActiveSupport::Notifications.subscribe do |*args|
payload = args.last

Rails.logger.debug "#{payload[:value]}"
end

ActiveSupport::Notifications.subscribe /process_action.action_controller/ do|*args|

        event = ActiveSupport::Notifications::Event.new(*args)

        controller = event.payload[:controller]

        action = event.payload[:action]

        format = event.payload[:format] || "all"

        format = "all" if format == "*/*"

        status = event.payload[:status]

        db_time = event.payload[:db_runtime]

        view_time = event.payload[:view_runtime]

        total_time = event.duration
        key_name = "#{controller}.#{action}.#{format}.#{ENV["rajani"]}"

end
