add socket sends for instrumentation functions.