How to measure API time consumption step wise?
i have an API written in Spring boot , which just act as a proxy between two api’s , it took request from one api and forward the request to other api , for 50% of request it is working fine but for some requests it is taking too much time like 147ms , it should do it’s work in around 20-40 ms , in the code i see nothing too complex , so i want to measure the time taken from checkpoints to checkpoints , like i want to know which step is time consuming
How can i do that ?