@lensmcp/core 1.22.2 → 1.22.4

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.
@@ -29,6 +29,16 @@ export interface LensmcpThresholds {
29
29
  * there for the case that matters.
30
30
  */
31
31
  duplicateRequestPeak: number;
32
+ /**
33
+ * Outbound (egress) call durationMs at/above which its host counts as "slow"
34
+ * (`net://egress/hosts`). Default 1000.
35
+ *
36
+ * Deliberately double `slowRouteMs`: a round trip to a third party over the public
37
+ * internet is legitimately slower than an in-cluster route, and a threshold that fires
38
+ * on healthy traffic is one that gets switched off — and then it is not there for the
39
+ * case that matters.
40
+ */
41
+ slowEgressMs: number;
32
42
  }
33
43
  export declare const DEFAULT_THRESHOLDS: LensmcpThresholds;
34
44
  /**
package/lib/thresholds.js CHANGED
@@ -1 +1 @@
1
- "use strict";var n=Object.defineProperty;var s=(e,o)=>n(e,"name",{value:o,configurable:!0});var u=Object.defineProperty,l=s((e,o)=>u(e,"name",{value:o,configurable:!0}),"n");export const DEFAULT_THRESHOLDS={dbInLoop:5,nPlusOne:3,renderStorm:5,slowRouteMs:500,slowRenderMs:16,slowQueryMs:100,duplicateRequestPeak:3};export function resolveThresholds(e){const o={...DEFAULT_THRESHOLDS};if(e)for(const t of Object.keys(DEFAULT_THRESHOLDS)){const r=e[t];typeof r=="number"&&Number.isFinite(r)&&r>=0&&(o[t]=r)}return o}s(resolveThresholds,"resolveThresholds"),l(resolveThresholds,"resolveThresholds");
1
+ "use strict";var n=Object.defineProperty;var r=(e,s)=>n(e,"name",{value:s,configurable:!0});var l=Object.defineProperty,u=r((e,s)=>l(e,"name",{value:s,configurable:!0}),"n");export const DEFAULT_THRESHOLDS={dbInLoop:5,nPlusOne:3,renderStorm:5,slowRouteMs:500,slowRenderMs:16,slowQueryMs:100,duplicateRequestPeak:3,slowEgressMs:1e3};export function resolveThresholds(e){const s={...DEFAULT_THRESHOLDS};if(e)for(const t of Object.keys(DEFAULT_THRESHOLDS)){const o=e[t];typeof o=="number"&&Number.isFinite(o)&&o>=0&&(s[t]=o)}return s}r(resolveThresholds,"resolveThresholds"),u(resolveThresholds,"resolveThresholds");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensmcp/core",
3
- "version": "1.22.2",
3
+ "version": "1.22.4",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -19,7 +19,7 @@
19
19
  }
20
20
  },
21
21
  "dependencies": {
22
- "@lensmcp/protocol-types": "1.22.2",
22
+ "@lensmcp/protocol-types": "1.22.4",
23
23
  "tslib": "^2.3.0"
24
24
  },
25
25
  "license": "Apache-2.0",