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
fix(instr-fetch): do not enable in Node.js; clarify in docs this instr is for web fetch only (#4498)
* fix(instr-fetch): do not enable in Node.js; clarify in docs this instr is for web fetch only
* add a changelog entry
* add a diagnostic warning if attempting to use instr-fetch in Node.js
* fixup! add a diagnostic warning if attempting to use instr-fetch in Node.js
---------
Co-authored-by: Marc Pichler <[email protected]>
Copy file name to clipboardExpand all lines: experimental/CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ All notable changes to experimental packages in this project will be documented
26
26
* fix(instrumentation): normalize paths for internal files in scoped packages [#4467](https://github.com/open-telemetry/opentelemetry-js/pull/4467)@pichlermarc
27
27
* Fixes a bug where, on Windows, internal files on scoped packages would not be instrumented.
28
28
* fix(otlp-transformer): only use BigInt inside hrTimeToNanos() [#4484](https://github.com/open-telemetry/opentelemetry-js/pull/4484)@pichlermarc
29
+
* fix(instrumentation-fetch): do not enable in Node.js; clarify in docs this instr is for web fetch only [#4498](https://github.com/open-telemetry/opentelemetry-js/pull/4498)@trentm
Copy file name to clipboardExpand all lines: experimental/packages/opentelemetry-instrumentation-fetch/README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
6
6
**Note: This is an experimental package under active development. New releases may include breaking changes.**
7
7
8
-
This module provides auto instrumentation for web using fetch.
8
+
This module provides auto instrumentation for web using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch).
9
+
(Note: This instrumentation does **not** instrument [Node.js' fetch](https://nodejs.org/api/globals.html#fetch). See [this issue](https://github.com/open-telemetry/opentelemetry-js/issues/4333).)
0 commit comments