Skip to content

Commit 59047bd

Browse files
authored
remove import limitation from README
1 parent c590efc commit 59047bd

File tree

1 file changed

+2
-3
lines changed
  • experimental/packages/opentelemetry-instrumentation

1 file changed

+2
-3
lines changed

experimental/packages/opentelemetry-instrumentation/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,9 @@ As the ESM module loader from NodeJS is experimental, so is our support for it.
228228

229229
## Limitations
230230

231-
Instrumentations for external modules (e.g. express, mongodb,...) hooks the `require` call. Therefore following conditions need to be met that this mechanism can work:
231+
Instrumentations for external modules (e.g. express, mongodb,...) hooks the `require` call or `import` statement. Therefore following conditions need to be met that this mechanism can work:
232232

233-
* `require` is used. ECMA script modules (using `import`) is not supported as of now
234-
* Instrumentations are registered **before** the module to instrument is `require`ed
233+
* Instrumentations are registered **before** the module to instrument is `require`ed (CJS only)
235234
* modules are not included in a bundle. Tools like `esbuild`, `webpack`, ... usually have some mechanism to exclude specific modules from bundling
236235

237236
## License

0 commit comments

Comments
 (0)