Fix #163 by guarding use of session scope in trace code.
Merge pull request #188 from seancorfield/develop

Fix #163 by guarding use of session scope in trace code.