New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prometheus-tracking

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prometheus-tracking - npm Package Compare versions

Comparing version 0.2.7 to 0.3.0

lib/tracker.counter.1.d.ts

1

lib/tracker.d.ts

@@ -8,3 +8,2 @@ import { ITrackerConfig } from './tracker.config';

private responseTime;
private requestCounter;
static toFloat(timeTuple: [number, number]): number;

@@ -11,0 +10,0 @@ /**

@@ -14,3 +14,2 @@ "use strict";

this.responseTime = this.createHistogram('http_response_time_seconds', 'Response time histogram', ['name', 'url', 'method', 'code']);
this.requestCounter = this.createCounter('http_request_counter', 'Counter of all requests', ['name', 'url', 'method', 'code']);
if (config.collectDefaultMetrics) {

@@ -56,3 +55,2 @@ // Probe every 5th second.

this.responseTime.labels(this.config.name, url, method, code.toString()).observe(seconds);
this.requestCounter.labels(this.config.name, url, method, code.toString()).inc();
}

@@ -59,0 +57,0 @@ /**

{
"name": "prometheus-tracking",
"version": "0.2.7",
"version": "0.3.0",
"description": "prometheus-tracking",

@@ -5,0 +5,0 @@ "author": "",

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