lsd-consulting/lsd-distributed-interceptors

Add timings to the LSD - diff between request and response

lukasz-gryzbon opened this issue · 1 comments

Add timings to the LSD - diff between request and response

Nothing is ever easy...is it?!

The plan is to calculate the timing of synchronous requests and add the value to the interaction, eg. 200 OK response from A to B (25 ms) [#blue].

However, to calculate the timing accurately, we need to identify the correct request - we need to match a request to the response. Since there may be intermediate requests between a given pair (request + response), it seems like the only way to do this is to capture and store the thread name and use it in matching the correct request to the given response.