nioc / node-red-contrib-opentelemetry

Node-red node for distributed tracing with OpenTelemetry SDK
https://flows.nodered.org/node/node-red-contrib-opentelemetry
GNU Affero General Public License v3.0
9 stars 5 forks source link

Sometimes spans do not follow the actual execution order #10

Open sergimola opened 1 week ago

sergimola commented 1 week ago

Sometimes spans do not follow the structure according to the actual execution of the flow.

Here's a simple example: image

Correct one: image

Wrong one: image

It doesn't happen only on this one, but it happens in general

nioc commented 6 days ago

Yes I already seen this behavior when operation is so fast that the nodejs engine hasn't been able to process the sending of the trace in the right order. Unfortunately I don't think it can be fixed on this library side, maybe upgrading OTEL dependencies should avoid it...