Distributed Tracing in Practice: Instrumenting,Analyzing,and Debugging Microservices
by: Austin Parker,Daniel Spoonhower,Jonathan Mace,Ben Sigelman,Rebecca Isaacs
Print Length 页数: 350 pages
Publisher finelybook 出版社: O′Reilly (31 May 2020)
Language 语言: English
ISBN-10: 1492056634
ISBN-13: 9781492056638
Book Description
Most applications today are distributed in some fashion. Monitoring the health and performance of these distributed architectures requires a new approach. Enter distributed tracing,a method of profiling and monitoring applications—especially those that use microservice architectures. There’s just one problem: distributed tracing can be hard. But it doesn’t have to be.
With this practical guide,you’ll learn what distributed tracing is and how to use it to understand the performance and operation of your software. Key players at Lightstep walk you through instrumenting your code for tracing,collecting the data that your instrumentation produces,and turning it into useful,operational insights. If you want to start implementing distributed tracing,this book tells you what you need to know.
You’ll learn:
The pieces of a distributed tracing deployment: Instrumentation,data collection,and delivering value
Best practices for instrumentation (the methods for generating trace data from your service)
How to deal with or avoid overhead,costs,and sampling
How to work with spans (the building blocks of request-based distributed traces) and choose span characteristics that lead to valuable traces
Where distributed tracing is headed in the future
Introduction: What Is Distributed Tracing?
1. The Problem with Distributed Tracing
2. An Ontology of Instrumentation
3. Open Source Instrumentation: Interfaces,Libraries,and Frameworks
4. Best Practices for Instrumentation
5. Deploying Tracing
6. Overhead,Costs,and Sampling
7.A New Observability Scorecard
8. Improving Baseline Performance
9. Restoring Baseline Performance
10. Are We There Yet? The Past and Present
11. Beyond Individual Requests
12. Beyond Spans
13. Beyond Distributed Tracing
14. The Future of Context Propagation
A. The State of Distributed Tracing Circa 2020
B. Context Propagation in Open Telemetry
Bibliography
Index