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

http-metrics-middleware

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-metrics-middleware - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

index.js

@@ -30,2 +30,4 @@ const accepts = require('accepts');

* @property {number[]} quantileBuckets - the quantiles to assign to duration summary (0.0 - 1.0)
* @property {number} quantileMaxAge configures sliding time window for summary (in seconds)
* @property {number} quantileAgeBuckets configures number of sliding time window buckets for summary
* @property {string[]} paramIgnores - array of params _not_ to replace

@@ -51,2 +53,4 @@ * @property {boolean} includeError - whether or not to include presence of an unhandled error as a label - defaults to false

formatStatusCode: this.normalizeStatusCode.bind(this),
quantileMaxAge: 600,
quantileAgeBuckets: 5,
});

@@ -110,2 +114,4 @@ this.options = options;

percentiles: this.options.quantileBuckets,
maxAgeSeconds: this.options.quantileMaxAge,
ageBuckets: this.options.quantileAgeBuckets,
}));

@@ -112,0 +118,0 @@ }

4

package.json
{
"name": "http-metrics-middleware",
"version": "1.1.1",
"version": "1.1.2",
"description": "Express middleware for adding common prometheus metrics",

@@ -34,3 +34,3 @@ "author": "QlikTech International AB",

"performance-now": "2.1.0",
"prom-client": "11.1.3",
"prom-client": "11.2.0",
"url-value-parser": "2.0.0"

@@ -37,0 +37,0 @@ },

@@ -47,2 +47,4 @@ [![Build Status][circleci-image]][circleci-url]

| `quantileBuckets` | `[ 0.1, 0.5, 0.95, 0.99 ]` | the quantiles to assign to duration summary (0.0 - 1.0) |
| `quantileMaxAge` | `600` | configures sliding time window for summary (in seconds) |
| `quantileAgeBuckets` | `5` | configures number of sliding time window buckets for summary |
| `includeError` | `false` | whether or not to include presence of an unhandled error as a label |

@@ -49,0 +51,0 @@ | `includePath` | `true` | whether or not to include normalized URL path as a metric label - see [about `includePath`](#about-includepath) below |

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