-
Book Overview & Buying
-
Table Of Contents
Software Architecture with C++ - Second Edition
By :
While logging collects pieces of information from a single point, tracing is concerned with the entire life cycle of a single transaction, starting at the point where it originates from a user action. Distributed tracing extends the idea of tracing across multiple services and machines.
Information captured by tracing may include function calls, their parameters, their size, and execution time. Each trace also has a unique trace identifier (trace ID) assigned to individual requests, which is used for tracking requests as they traverse through various services in a distributed system to provide visibility into complete request paths.
Each trace is composed of spans. Hierarchical spans in traces are used to construct and visualize a dependency graph between services in a distributed system. This is based on context propagation, transferring request metadata such as trace IDs, span IDs, and user data between different services, layers, or threads in a distributed application...