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
969 stars 399 forks source link

Move root segment to context manager #2695

Open bizob2828 opened 6 hours ago

bizob2828 commented 6 hours 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 6 hours ago

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