Instrumenting Messaging Scenarios
Messaging and asynchronous processing improve distributed system scalability and reliability by reducing coupling between services. However, they also increase complexity and introduce a new failure mode, which makes observability even more important.
In this chapter, we’ll work on instrumenting a messaging producer and consumer with traces and metrics and cover individual and batch message processing.
In this chapter, you’ll learn how to do the following:
- Trace individual messages as they are created and published
- Instrument receiving and processing operations
- Instrument batches
- Use instrumentation to diagnose common messaging problems
By the end of this chapter, you should be able to instrument your messaging application from scratch or tune the existing messaging instrumentation to your needs.