Capture git revision and requested hostname in tracking context

Reviewers: @rocha, @brianhw
Can we make it so if doesn't add them to the context if they are not defined?