You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@platformatic/metrics

Package Overview
Dependencies
Maintainers
8
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/metrics - npm Package Compare versions

Comparing version
2.7.0
to
2.8.0-alpha.1
+2
-2
index.js

@@ -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) {

{
"name": "@platformatic/metrics",
"version": "2.7.0",
"version": "2.8.0-alpha.1",
"description": "Platformatic Stackable Metrics",

@@ -5,0 +5,0 @@ "main": "index.js",