@platformatic/metrics
Advanced tools
+2
-2
@@ -8,3 +8,3 @@ 'use strict' | ||
| async function collectMetrics (serviceId, metricsConfig = {}) { | ||
| async function collectMetrics (serviceId, workerId, metricsConfig = {}) { | ||
| const registry = new Registry() | ||
@@ -16,3 +16,3 @@ | ||
| const labels = metricsConfig.labels ?? {} | ||
| registry.setDefaultLabels({ ...labels, serviceId }) | ||
| registry.setDefaultLabels({ ...labels, serviceId, workerId }) | ||
@@ -19,0 +19,0 @@ if (metricsConfig.defaultMetrics) { |
+1
-1
| { | ||
| "name": "@platformatic/metrics", | ||
| "version": "2.7.0", | ||
| "version": "2.8.0-alpha.1", | ||
| "description": "Platformatic Stackable Metrics", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17948
0.16%1
Infinity%