[instrumentation] support ESM instrumentation for Node.js v18.19, v20, v21 #4553
Labels
needs:code-contribution
This feature/bug is ready to implement
pkg:instrumentation
type:feature-tracking
A feature with sub-issues that need to be addressed
Currently we use an older version of import-in-the-middle that does not work with
We're blocked on updating to import-in-the-middle@1.7.3 here as that version includes a bug (DataDog/import-in-the-middle#57) which breaks our way of detecting ESM packages. We do this ESM detection in multiple packages in contrib (see open-telemetry/opentelemetry-js-contrib#2021).
To resolve this issue there are two options:
@@toStringTag
property not present on modules passed tohookFn
DataDog/import-in-the-middle#57 upstreamOption 2: implement a workaround in the contrib repo(going for option 1)Regardless of the option chosen above, we then need to:
import-in-the-middle
version in coreimport-in-the-middle
from the ignore list inrenovate.json
@opentelemetry/instrumentation
(done by a maintainer)The text was updated successfully, but these errors were encountered: