How to trace the API flows step by step

Are there any tracing mechanism to trace the API flows step by step starting from the request flow to response flow ?