9 Cross-cutting concerns: Monitoring and logging
This chapter covers
- Monitoring in a microservice system
- Exploring structured logging
- Distributed tracing across microservices
- Logging unhandled exceptions
In this chapter, you’ll start to learn how ASP.NET helps us tackle some important cross-cutting concerns: monitoring, logging, and tracing. All three are needed across all microservices, and they play an important role in making a microservice system operations friendly. Once your system is in production, you need to know whether all your microservices are up, which is why you need to monitor them. In addition, as discussed in chapter 7, you need good logging to be able to diagnose the system.
Here, you’ll configure middleware in the context ...
Get Microservices in .NET, Second Edition 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.