Replies: 1 comment 1 reply
-
This issue is better placed on the Application Insight repository. Undici supports diagnostics channel: https://undici.nodejs.org/#/docs/api/DiagnosticsChannel, which was designed to be enough for the Application Insight use case. In case it's insufficient, we are happy to work with anybody to add the metadata that is missing. Regarding nock, undici ships with its own mocking system. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Application Insights has an auto collect feature that collects http(s) request calls done by an application. However this no longer works with the native fetch implementation.
The reason for this is that undici neither use
http
norhttps
layers, but rather is a re-implementation. This is the same reason that libraries such asnock
can't intercept and mock request done via native fetch.So are there any plans on exposing a surface that libraries such that nock and application insights, can listen to and/or intercept?
What are the alternatives?
Beta Was this translation helpful? Give feedback.
All reactions