- Why is it good practice to log the average response time of each microservice?
- What should be logged in application?
Why is it good practice to log the average response time of each microservice?
The ability to query logs efficiently is an essential part of finding failures that occur across multiple microservices. Using the correlation ID, a developer or tester should be able to access the complete request flow within the application.
What should be logged in application?
These logs typically consist of the following information: date and time, requester identity such as User ID and IP address or referral URL, and the actual request data. In the case of a Web Application or API, the requested endpoint URL and context header and body is logged.