Add instrumentation for Agent#connect.
Add resource logging for Travis.