@nxtedition/lib 26.8.0 → 26.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +9 -1
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -702,7 +702,10 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
702
702
|
),
|
|
703
703
|
rx.map(([serviceStats, appStats, undiciStats]) => ({
|
|
704
704
|
...appStats,
|
|
705
|
-
undici:
|
|
705
|
+
undici: {
|
|
706
|
+
sockets: globalThis.__undici_sockets?.size,
|
|
707
|
+
...undiciStats,
|
|
708
|
+
},
|
|
706
709
|
[serviceName]: serviceStats,
|
|
707
710
|
})),
|
|
708
711
|
rx.retryWhen((err$) =>
|
|
@@ -771,6 +774,11 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
771
774
|
undici$.pipe(
|
|
772
775
|
rx.map((stats) => {
|
|
773
776
|
return [
|
|
777
|
+
{
|
|
778
|
+
id: 'app:undici_upstream_sockets',
|
|
779
|
+
level: stats.sockets > 8192 ? 50 : stats.sockets > 4096 ? 40 : 30,
|
|
780
|
+
msg: `Undici: ${stats.sockets} upstream connected`,
|
|
781
|
+
},
|
|
774
782
|
{
|
|
775
783
|
id: 'app:undici_upstream_connections',
|
|
776
784
|
level: stats.connections > 8192 ? 50 : stats.connections > 4096 ? 40 : 30,
|