-
Book Overview & Buying
-
Table Of Contents
Modern Distributed Tracing in .NET
By :
Distributed tracing is a great tool to describe and correlate operations, but sometimes, we need to record things such as callbacks and startup configurations, or conditionally write debug information. In this chapter, we’re going to explore logs – the oldest and most popular telemetry signal that can describe anything.
First, we’ll talk about logging use cases and discover different APIs available in .NET, and then we’ll focus on ILogger – a common logging façade. We’ll learn how to use it efficiently to write structured events. We’ll see how to export logs with OpenTelemetry and write rich queries over them. Finally, we’ll explore log sampling and cost-saving strategies.
In this chapter, you’ll learn the following:
Microsoft.Extentions.Logging.ILogger class