Skip to Content
Distributed Tracing in Practice
book

Distributed Tracing in Practice

by Austin Parker, Daniel Spoonhower, Jonathan Mace, Ben Sigelman, Rebecca Isaacs
April 2020
Intermediate to advanced content levelIntermediate to advanced
327 pages
10h
English
O'Reilly Media, Inc.
Content preview from Distributed Tracing in Practice

Appendix B. Context Propagation in OpenTelemetry

In Chapter 14 we discussed context propagation as it applies not only to distributed tracing, but also to other applications in microservice architectures. As of this writing, OpenTelemetry has adopted a proposal to separate its context mechanism and model from the distributed tracing and metric models to support a wider variety of use cases. As the exact translation of this proposal into specification has not occurred at this point, we’ll describe the overarching goals of this context propagation model, how it factors into the overall OpenTelemetry project, and its intended use.

Why a Separate Context Model?

Earlier in the book we discussed the advantages of context propagation as a mechanism that applies to use cases beyond simply profiling and monitoring microservice architectures, also known as cross-cutting tools. Today, the practical realities of how developers build software has meant that these cross-cutting tools are often tightly coupled to some other particular component or dependency in their software. An example of this is in OpenTracing—the ability to propagate key-value pairs through trace context baggage is quite useful for passing messages around an application for telemetry purposes (for example, using data carried in the baggage from an upstream service to isolate a particular event or metric later in the request), but we have also seen usages of it where developers use it as an out-of-band message channel to ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Distributed Tracing

Mastering Distributed Tracing

Yuri Shkuro
Logging in Action

Logging in Action

Phil Wilkins

Publisher Resources

ISBN: 9781492056621Errata PageSupplemental Content