Open omikader opened 2 months ago
I think this happens because the clock in the laptop and the clock in the server are 200ms apart. Consumer laptops are not too hardcore about syncing continuously their clocks, being a couple of seconds up or down compared with some atomic clock in the atmosphere or something, does not make a difference to them. Servers tend to be perfectly synced within the datacenter so this effect does not happen among services.
Hi @JordiPolo, thanks for the quick response! Given that this is the case, would you say it is not valuable to propagate traces from a client's device to actions taken on the server? Or perhaps is there a canonical strategy for resetting the start time for the client-side trace once it is captured by the Faro receiver?
Maybe at some point there is a way to know the diff in clocks an a solution. Right now this is what you will get. To me still makes sense to have this information as long as the people who would be reading the trace understand why this looks like that.
Description
We are seeing strange delays in the start time for propagated traces emitted from our Flask API. Notice how the
HTTP GET
trace, which is emitted by our React SPA, starts and finishes before the traces emitted by the Flask API server seem to even start.Steps to reproduce
propagateTraceHeaderCorsUrls
to ensure that theTraceparent
header is sent to the backend serverflask
andmysql-connector-python
Traceparent
is also set in the request headers to the API server. This allows us to successfully correlate the traces emitted in Flask with the original web request from the React app.Expected behavior
dor-omar-frontend
appActual behavior
Environment