6
Tracing Your Code
In the previous chapters, we talked about instrumentation libraries and learned how to use auto-collected telemetry to monitor and debug distributed systems. Auto-instrumentations, when available, provide necessary and reasonable coverage for network calls, but you may want to trace additional logical operations, I/Os, sockets, or other calls that don’t have shared instrumentation available.
This chapter provides an in-depth guide to manual tracing using the System.Diagnostics primitives or the OpenTelemetry API and explains the mechanism behind auto-instrumentation. We will cover the Activity properties and how to populate them and show you how to record events. We’ll then learn how to use links to represent complex relationships ...
Get Modern Distributed Tracing in .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.