O'Reilly logo

Microservices in .NET Core: with examples in Nancy by Christian Horsdal Gammelgaard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Cross-cutting concerns: monitoring and logging

This chapter covers

  • Monitoring in a microservice system
  • Exploring structured logging and the Serilog logging library
  • Adding correlation tokens to log messages
  • Logging requests and request performance
  • Logging unhandled exceptions

In this chapter, you’ll start using the knowledge about OWIN you gained in chapter 8 to create reusable pieces of OWIN middleware that address some important cross--cutting concerns: monitoring and logging. Both are needed across all microservices, and they play an important role in making a microservice system operation-friendly. Once your system is in production, you need to know whether all your microservices are up, which is why you need to monitor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required