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
To monitor outbound HTTP/HTTPS requests made by your application, you can use the `onOutboundRequest` function. This is useful when you want to track external API calls, log outbound traffic, or analyze what domains your application connects to.
- You can register multiple callbacks by calling `onOutboundRequest` multiple times.
19
+
- Callbacks are triggered for all HTTP/HTTPS requests made through Node.js built-in modules (`http`, `https`), builtin fetch function, undici and anything that uses that.
20
+
- Callbacks are called when the connection is initiated, before knowing if Zen will block the request.
21
+
- Errors thrown in callbacks (both sync and async) are silently caught and not logged to prevent breaking your application.
0 commit comments