Chapter 4: Distributed Tracing – Tracing Code Execution
So, now that we have an understanding of the concepts of OpenTelemetry and are familiar with the different signals it covers, it's time to start instrumenting application code. In Chapter 2, OpenTelemetry Signals – Tracing, Metrics, and Logging, we covered the terminology and concepts of those signals by looking at a system that was instrumented with OpenTelemetry. Now, it's time to get hands-on with some code to start generating telemetry ourselves, and to do this, we're going to first look at implementing a tracing signal.
In this chapter, we will cover the following topics:
- Configuring OpenTelemetry
- Generating tracing data
- Enriching the data with attributes, events, and links
- Adding error handling information
By the end of this chapter, you'll have instrumented several applications with OpenTelemetry and be able to trace how those applications are connected via...