@gravito/monitor 3.1.0 → 3.1.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/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -382,7 +382,9 @@ var MetricsController = class {
|
|
|
382
382
|
*/
|
|
383
383
|
updateHealthCacheMetrics() {
|
|
384
384
|
const healthMetrics = this.registry._healthCacheMetrics;
|
|
385
|
-
if (!healthMetrics)
|
|
385
|
+
if (!healthMetrics) {
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
386
388
|
const stats = healthMetrics.registry.getCacheStats();
|
|
387
389
|
healthMetrics.hits.set(stats.hits);
|
|
388
390
|
healthMetrics.misses.set(stats.misses);
|
package/dist/index.js
CHANGED
|
@@ -330,7 +330,9 @@ var MetricsController = class {
|
|
|
330
330
|
*/
|
|
331
331
|
updateHealthCacheMetrics() {
|
|
332
332
|
const healthMetrics = this.registry._healthCacheMetrics;
|
|
333
|
-
if (!healthMetrics)
|
|
333
|
+
if (!healthMetrics) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
334
336
|
const stats = healthMetrics.registry.getCacheStats();
|
|
335
337
|
healthMetrics.hits.set(stats.hits);
|
|
336
338
|
healthMetrics.misses.set(stats.misses);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravito/monitor",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Observability module for Gravito - Health checks, Metrics, and Tracing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"test:integration": "test $(find tests -name '*.integration.test.ts' 2>/dev/null | wc -l) -gt 0 && find tests -name '*.integration.test.ts' -print0 | xargs -0 bun test --timeout=10000 || echo 'No integration tests found'"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@gravito/core": "
|
|
36
|
-
"@gravito/photon": "
|
|
35
|
+
"@gravito/core": "^1.6.1",
|
|
36
|
+
"@gravito/photon": "^1.0.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/bun": "latest",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@opentelemetry/exporter-trace-otlp-http": "^0.57.0",
|
|
43
43
|
"@opentelemetry/resources": "^1.29.0",
|
|
44
44
|
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
45
|
-
"@gravito/core": "
|
|
45
|
+
"@gravito/core": "^1.6.1",
|
|
46
46
|
"tsup": "^8.2.4",
|
|
47
47
|
"typescript": "^5.9.3"
|
|
48
48
|
},
|