Explain it simpler
Modern apps are like relay races: one service hands the request to the next, which hands it to the next. When the race is slow, you need to know which runner was slow. Distributed tracing gives every request a shared ID number, like a race bib, and each service writes that number on its notes and passes it along. Later you can line up all the notes with the same number and see the whole race on one timeline. Because busy apps produce enormous numbers of notes, sampling keeps only some complete races, chosen fairly, to save money. Live Metrics is a scoreboard that shows what is happening right now, second by second, which is handy while you release a change.
At 9:15 on a Tuesday, the help desk at Silverline Travel lights up: customers say booking confirmation is taking forever, but only sometimes. The booking flow touches five services: a web front end, a booking API, Cosmos DB, a Service Bus queue and a worker that calls a pricing model. Each team checks its own dashboard and declares its service healthy. Theo from the front-end team says it must be the API. The API team blames the worker. You are deploying a fix in an hour and need to watch it live. How do you follow one slow booking through every service and see exactly where the time went?
Modern applications are chains of services. A front end calls an API, which reads Cosmos DB, sends a Service Bus message and calls a model endpoint, and a worker picks up the message seconds later. When a user reports a slow or failed request, you need to follow that one request across every hop, not look at five unrelated dashboards. Distributed tracing makes that possible by giving all the work for one operation a shared trace ID and linking each piece of work to its parent.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.