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

Move root segment to context manager #2695

Open bizob2828 opened 1 week ago

bizob2828 commented 1 week 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 we want to store the root segment on context manager and retrieve it from there.

workato-integration[bot] commented 1 week ago

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

bizob2828 commented 1 week ago

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