Distributed tracing system for collecting and analyzing latency data in cloud applications and microservices