Replies: 2 comments 1 reply
-
This is interesting to know how we could do that. I also want to point out that the whole require in the middle system isn't possible with ESM modules so we might update the system to have multiple way of hooking into modules. |
Beta Was this translation helpful? Give feedback.
-
Thanks, If someone finds a good way to do this integration, I'll be happy to help and be involved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Me and @nirsky are working on otel-js integration with jest testing framework, to collect traces from unit-tests.
Opentelemetry SDK is using "require-in-the-middle" which is not compatible with jest which introduces an internal "require" implementation and JIT compilation.
I opened this issue in jest to try and find a solution:
jestjs/jest#11295
Thought to share it here as well in the hope that someone experienced with nodejs internals / patching methods might come with a good solution.
Beta Was this translation helpful? Give feedback.
All reactions