Since most applications today are distributed in some fashion, monitoring their health and performance requires a new approach. Enter distributed tracing, a method of profiling and monitoring distributed applications—particularly those that use microservice architectures. There’s just one problem: distributed tracing can be hard. But it doesn’t have to be.
With this 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 and other organizations 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 implement distributed tracing, this book tells you what you need to know.
- The pieces of a distributed tracing deployment: instrumentation, data collection, and analysis
- Best practices for instrumentation: methods for generating trace data from your services
- How to deal with (or avoid) overhead using sampling and other techniques
- How to use distributed tracing to improve baseline performance and to mitigate regressions quickly
- Where distributed tracing is headed in the future
Table of Contents
- 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
- Tracing by Example
- Where to Start—Nodes and Edges
- What’s in a Span?
- Trace-Driven Development
- Creating an Instrumentation Plan
5. Deploying Tracing
- Organizational Adoption
- Tracer Architecture
- Data Provenance, Security, and Federation
- 6. Overhead, Costs, and Sampling
- 7. A New Observability Scorecard
- 8. Improving Baseline Performance
9. Restoring Baseline Performance
- Defining the Problem
- Human Factors
- Approaches to Restoring Performance
- 10. Are We There Yet? The Past and Present
11. Beyond Individual Requests
- The Value of Traces in Aggregate
- Organizing the Data
- What About the Trade-offs?
- Sampling for Aggregate Analysis
- The Processing Pipeline
- Incorporating Heterogeneous Data
- Custom Functions
- Recap and Case Study
- 12. Beyond Spans
13. Beyond Distributed Tracing
- Limitations of Distributed Tracing
- Other Tools Like Distributed Tracing
- Pivot Tracing
14. The Future of Context Propagation
- Cross-Cutting Tools
- Use Cases
- Common Themes
- Should You Care?
- The Tracing Plane
- A. The State of Distributed Tracing Circa 2020
- B. Context Propagation in OpenTelemetry
- Title: Distributed Tracing in Practice
- Release date: April 2020
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492056638