San Jose, USA

2066 N Capitol Ave #1117
San Jose, CA 95132

Pune, India

Office #803, 8th Floor, Tower 2
World Trade Center, Kharadi
Pune, Maharashtra 411014
Ruby on Rails

#7 - Use uuid, X-Request-Id and tagged logging

Episode Notes

Use uuid and tagged logging to debug Rails application.


Wheel::Application.config.log_tags = [ :subdomain, :uuid ]


before_action :set_honeybadger_context

def set_honeybadger_context hash = { uuid: request.uuid }

if current_user hash.merge!({ user_id:, user_email: }) end

Honeybadger.context hash end