dd-trace seems like not working well with MSW library, that used with many companies to make mocked response
Expected behaviour
dd-trace should be able to catch outgoing http.request. And add x-datadog-* headers to be able to track Distributed Tracing
Actual behaviour
When MSW (Mock Service Worker) is enabled in Node.js Server with bypass mode (bypasses request that do not match with mocking handers), bypassed outgoing request is not captured by dd-trace. and x-datadog-* header is not attached
Steps to reproduce
I made reproduction repository. Please clone that repository and follow reproduction steps in README.md
Environment
Operation system:: Ubuntu 20.04 or Mac OS 13.2.1
Node.js version: 18.16.0
Tracer version: 4.3.0
Agent version: Does not important (This issue is not related to Agent Version)
dd-trace seems like not working well with MSW library, that used with many companies to make mocked response
Expected behaviour
dd-trace should be able to catch outgoing
http.request
. And addx-datadog-*
headers to be able to track Distributed TracingActual behaviour
When MSW (Mock Service Worker) is enabled in Node.js Server with bypass mode (bypasses request that do not match with mocking handers), bypassed outgoing request is not captured by dd-trace. and
x-datadog-*
header is not attachedSteps to reproduce I made reproduction repository. Please clone that repository and follow reproduction steps in README.md
Environment
Package.json is in reproduction repository