lsd-consulting / lsd-distributed-interceptors

A set of interceptors gathering information from distributed services for the LSD library.

Home Page:https://github.com/integreety/lsd-distributed-interceptor-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add timings to the LSD - diff between request and response

lukasz-gryzbon opened this issue · comments

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.