newrelic / node-newrelic

New Relic Node.js agent code base. Developers are welcome to create pull requests here, please see our contributing guidelines. For New Relic technical support, please go to http://support.newrelic.com.
Apache License 2.0
971 stars 399 forks source link

Update how duration and exclusive duration are calculated #2695

Open bizob2828 opened 3 weeks ago

bizob2828 commented 3 weeks ago

Description

We have done work to remove the transaction from the segment(#2658). We are still attaching the root segment to every segment so it can update the exclusive time. Instead of having every segment update the root with a new time, I think we can just update the code to capture relative start/end times from its parent.

workato-integration[bot] commented 3 weeks ago

https://new-relic.atlassian.net/browse/NR-335773

bizob2828 commented 2 weeks ago

this is causing issues with losing context at times. I'm going to put this on the backlog