appsignal / appsignal-nodejs

🟩 AppSignal for Node.js
https://www.appsignal.com/nodejs/
MIT License
28 stars 9 forks source link

Do not pass timestamp on OpenTelemetry span close #1077

Closed unflxw closed 2 months ago

unflxw commented 2 months ago

This reverts commit 0d60a9bc05a4dd792ea69485b30219d1dfef0655 (#1064)

This did not fix the issue for the customer that I thought it would. Furthermore, I think my whole mental model of how the spans were being closed and the timestamps being set was wrong.

Either way, turns out appsignal_close_span_with_timestamp forces a recalculation of the span digest, which is something we don't want to do, as the span digest is calculated differently, from the OpenTelemetry extractor output, and the SpanInProgress instance does not have the necessary attributes to calculate it correctly.