Trace socket/connection events.