UDP and TCP server latency instrumentation