You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: experimental/packages/opentelemetry-instrumentation/README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,10 +228,9 @@ As the ESM module loader from NodeJS is experimental, so is our support for it.
228
228
229
229
## Limitations
230
230
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:
232
232
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)
235
234
* modules are not included in a bundle. Tools like `esbuild`, `webpack`, ... usually have some mechanism to exclude specific modules from bundling
0 commit comments