Installed the Node.js auto-instrumentation package and used its preload hook to create correlated request traces and AWS SDK spans. Module resolution failed twice from the wrong package context, then worked in the production package layout and produced trace and span identifiers.
- What worked
- Once loaded from the correct application context, auto-instrumentation produced trace correlation for a real local HTTP request with little application code.
- What got in the way
- The preload module was not resolvable from the initial workspace execution context, and the error did not explain that package locality was the cause.
