debugging production - eurucamp 2013
DESCRIPTION
- monitoring exceptions - utilizing your logs - reproducing in productionTRANSCRIPT
Debugging Production
@grosser grosser.it github.com/grosser
Michael GrosserRuby/Rails Framework Engineer
Exceptions
Logs
Reproduction
Exceptions:In the beginning they are helpful in the end they are noise.
airbrake_tools
Hot
List
Summary
air_mangithub.com / grosser / air_man
✓ Exceptions
Logs
Reproduction
request_recordergithub.com / grosser / request_recorder
ultragrepgithub.com / zendesk / ultragrep
- log folder structure <server>/year/month/day- 1 log per day 00:00 - 23:59- 2 newlines between requests
✓ Exceptions
✓ Logs
Reproduction
Login as customer: - master password - admins can log in as end-user - log who auths as whom
validate fix in productionbefore deploying
- prefer read only server - app.get / post - helper.link_to
✓ Exceptions
✓ Logs
✓ Reproduction
Know your exceptions - hot / patterns (airbrake_tools) - monitor (air_man) - track http status codes
Know your logs - redirects / queries (request_recorder) - search / info / data (ultragrep)
Reproduce to debugReproduce before deploying
Also hiring (Ruby/Ember/DevOps/...) -> live in sunny SF ;)