diff --git a/changelog.md b/changelog.md index e0e6b88..e38c6f5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-04-04 - 12.9.1 - fix(monitoring) +update SmartProxy and use direct connection protocol metrics access + +- bump @push.rocks/smartproxy from ^27.1.0 to ^27.2.0 +- replace fallback any-based access with direct frontend and backend protocol metric calls in MetricsManager + ## 2026-04-04 - 12.9.0 - feat(monitoring) add frontend and backend protocol distribution metrics to network stats diff --git a/package.json b/package.json index 4259a80..2e25f1d 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@push.rocks/smartnetwork": "^4.5.2", "@push.rocks/smartpath": "^6.0.0", "@push.rocks/smartpromise": "^4.2.3", - "@push.rocks/smartproxy": "^27.1.0", + "@push.rocks/smartproxy": "^27.2.0", "@push.rocks/smartradius": "^1.1.1", "@push.rocks/smartrequest": "^5.0.1", "@push.rocks/smartrx": "^3.0.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 300e7a6..48a0d93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,8 +78,8 @@ importers: specifier: ^4.2.3 version: 4.2.3 '@push.rocks/smartproxy': - specifier: ^27.1.0 - version: 27.1.0 + specifier: ^27.2.0 + version: 27.2.0 '@push.rocks/smartradius': specifier: ^1.1.1 version: 1.1.1 @@ -1279,8 +1279,8 @@ packages: '@push.rocks/smartpromise@4.2.3': resolution: {integrity: sha512-Ycg/TJR+tMt+S3wSFurOpEoW6nXv12QBtKXgBcjMZ4RsdO28geN46U09osPn9N9WuwQy1PkmTV5J/V4F9U8qEw==} - '@push.rocks/smartproxy@27.1.0': - resolution: {integrity: sha512-uMtmbT6/9Y+lOnSi4w6SRICWJr9q9bHsYAq6xMLmym3zvnEzEwJWF6sw4Jb/uEFEjI2/e4irNSQ9Ba74DhFRlg==} + '@push.rocks/smartproxy@27.2.0': + resolution: {integrity: sha512-F7stwFDv2BLyDK5WY7WocNbsxrjfuT+X1R0O3Ii4fw1weRDekOyxUPmeK/QcWxBdp+LgsSuVvBEv3sFpQHipvw==} '@push.rocks/smartpuppeteer@2.0.5': resolution: {integrity: sha512-yK/qSeWVHIGWRp3c8S5tfdGP6WCKllZC4DR8d8CQlEjszOSBmHtlTdyyqOMBZ/BA4kd+eU5f3A1r4K2tGYty1g==} @@ -6518,11 +6518,11 @@ snapshots: '@push.rocks/smartpromise@4.2.3': {} - '@push.rocks/smartproxy@27.1.0': + '@push.rocks/smartproxy@27.2.0': dependencies: '@push.rocks/smartcrypto': 2.0.4 '@push.rocks/smartlog': 3.2.1 - '@push.rocks/smartnftables': 1.0.1 + '@push.rocks/smartnftables': 1.1.0 '@push.rocks/smartrust': 1.3.2 '@tsclass/tsclass': 9.5.0 minimatch: 10.2.4 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 2205229..f2b7dba 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/dcrouter', - version: '12.9.0', + version: '12.9.1', description: 'A multifaceted routing service handling mail and SMS delivery functions.' } diff --git a/ts/monitoring/classes.metricsmanager.ts b/ts/monitoring/classes.metricsmanager.ts index f1e78e2..b257d99 100644 --- a/ts/monitoring/classes.metricsmanager.ts +++ b/ts/monitoring/classes.metricsmanager.ts @@ -591,10 +591,9 @@ export class MetricsManager { const requestsPerSecond = proxyMetrics.requests.perSecond(); const requestsTotal = proxyMetrics.requests.total(); - // Get frontend/backend protocol distribution (available in SmartProxy >= next release) - const conn = proxyMetrics.connections as any; - const frontendProtocols = conn.frontendProtocols?.() ?? null; - const backendProtocols = conn.backendProtocols?.() ?? null; + // Get frontend/backend protocol distribution + const frontendProtocols = proxyMetrics.connections.frontendProtocols() ?? null; + const backendProtocols = proxyMetrics.connections.backendProtocols() ?? null; // Collect backend protocol data const backendMetrics = proxyMetrics.backends.byBackend(); diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 2205229..f2b7dba 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/dcrouter', - version: '12.9.0', + version: '12.9.1', description: 'A multifaceted routing service handling mail and SMS delivery functions.' }