Posts

Showing posts from May, 2022

Spring Interview Preparation

Image
  Interview Preparation Spring Boot 1.        management.endpoints.web.exposure.include=httptrace When we work with microservices or web services in general, it's quite useful to know how our users interact with our services. This can be achieved by tracing all the requests that hit our services and collect this information to analyze it later. There some systems available out there that can help us with this and can be easily integrated with Spring like  Zipkin . However,  Spring Boot Actuator has this functionality built-in  and can be used through its  httpTrace  endpoint which traces all HTTP requests. In this tutorial, we'll show how to use it and how to customize it to fit better our requirements. @Repository public class CustomTraceRepository implements HttpTraceRepository {   “From above for tracing we can use zipkin server and spring boot actuator”   2.        ...