Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prom-client

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prom-client - npm Package Compare versions

Comparing version 5.0.4 to 6.0.0

8

lib/metrics/eventLoopLag.js

@@ -5,3 +5,3 @@ 'use strict';

var NODEJS_EVENTLOOP_LAG = 'nodejs_eventloop_lag_milliseconds';
var NODEJS_EVENTLOOP_LAG = 'nodejs_eventloop_lag_seconds';

@@ -11,9 +11,9 @@ function reportEventloopLag(start, gauge) {

var nanosec = delta[0] * 1e9 + delta[1];
var ms = nanosec / 1e6;
var seconds = nanosec / 1e9;
gauge.set(Math.round(ms));
gauge.set(seconds);
}
module.exports = function() {
var gauge = new Gauge(NODEJS_EVENTLOOP_LAG, 'Lag of event loop in milliseconds.');
var gauge = new Gauge(NODEJS_EVENTLOOP_LAG, 'Lag of event loop in seconds.');

@@ -20,0 +20,0 @@ return function() {

{
"name": "prom-client",
"version": "5.0.4",
"version": "6.0.0",
"description": "Client for prometheus",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc