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

@opentelemetry/sdk-metrics

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/sdk-metrics - npm Package Compare versions

Comparing version 1.21.0 to 1.22.0

8

build/esm/aggregator/ExponentialHistogram.js

@@ -213,2 +213,7 @@ /*

ExponentialHistogramAccumulation.prototype.updateByIncrement = function (value, increment) {
// NaN does not fall into any bucket, is not zero and should not be counted,
// NaN is never greater than max nor less than min, therefore return as there's nothing for us to do.
if (Number.isNaN(value)) {
return;
}
if (value > this._max) {

@@ -328,2 +333,5 @@ this._max = value;

}
if (buckets.length === 0) {
buckets.indexStart = buckets.indexEnd = buckets.indexBase = index;
}
if (index < buckets.indexStart) {

@@ -330,0 +338,0 @@ var span = buckets.indexEnd - index;

@@ -61,2 +61,7 @@ /*

HistogramAccumulation.prototype.record = function (value) {
// NaN does not fall into any bucket, is not zero and should not be counted,
// NaN is never greater than max nor less than min, therefore return as there's nothing for us to do.
if (Number.isNaN(value)) {
return;
}
this._current.count += 1;

@@ -63,0 +68,0 @@ this._current.sum += value;

2

build/esm/version.d.ts

@@ -1,2 +0,2 @@

export declare const VERSION = "1.21.0";
export declare const VERSION = "1.22.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '1.21.0';
export var VERSION = '1.22.0';
//# sourceMappingURL=version.js.map

@@ -146,4 +146,4 @@ /*

_this._recordMinMax = _recordMinMax;
if (boundaries === undefined || boundaries.length === 0) {
throw new Error('HistogramAggregator should be created with boundaries.');
if (boundaries == null) {
throw new Error('ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array');
}

@@ -150,0 +150,0 @@ // Copy the boundaries array for modification.

@@ -154,2 +154,7 @@ /*

updateByIncrement(value, increment) {
// NaN does not fall into any bucket, is not zero and should not be counted,
// NaN is never greater than max nor less than min, therefore return as there's nothing for us to do.
if (Number.isNaN(value)) {
return;
}
if (value > this._max) {

@@ -269,2 +274,5 @@ this._max = value;

}
if (buckets.length === 0) {
buckets.indexStart = buckets.indexEnd = buckets.indexBase = index;
}
if (index < buckets.indexStart) {

@@ -271,0 +279,0 @@ const span = buckets.indexEnd - index;

@@ -43,2 +43,7 @@ /*

record(value) {
// NaN does not fall into any bucket, is not zero and should not be counted,
// NaN is never greater than max nor less than min, therefore return as there's nothing for us to do.
if (Number.isNaN(value)) {
return;
}
this._current.count += 1;

@@ -45,0 +50,0 @@ this._current.sum += value;

@@ -1,2 +0,2 @@

export declare const VERSION = "1.21.0";
export declare const VERSION = "1.22.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '1.21.0';
export const VERSION = '1.22.0';
//# sourceMappingURL=version.js.map

@@ -101,4 +101,4 @@ /*

this._recordMinMax = _recordMinMax;
if (boundaries === undefined || boundaries.length === 0) {
throw new Error('HistogramAggregator should be created with boundaries.');
if (boundaries == null) {
throw new Error('ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array');
}

@@ -105,0 +105,0 @@ // Copy the boundaries array for modification.

@@ -157,2 +157,7 @@ "use strict";

updateByIncrement(value, increment) {
// NaN does not fall into any bucket, is not zero and should not be counted,
// NaN is never greater than max nor less than min, therefore return as there's nothing for us to do.
if (Number.isNaN(value)) {
return;
}
if (value > this._max) {

@@ -272,2 +277,5 @@ this._max = value;

}
if (buckets.length === 0) {
buckets.indexStart = buckets.indexEnd = buckets.indexBase = index;
}
if (index < buckets.indexStart) {

@@ -274,0 +282,0 @@ const span = buckets.indexEnd - index;

@@ -46,2 +46,7 @@ "use strict";

record(value) {
// NaN does not fall into any bucket, is not zero and should not be counted,
// NaN is never greater than max nor less than min, therefore return as there's nothing for us to do.
if (Number.isNaN(value)) {
return;
}
this._current.count += 1;

@@ -48,0 +53,0 @@ this._current.sum += value;

@@ -1,2 +0,2 @@

export declare const VERSION = "1.21.0";
export declare const VERSION = "1.22.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '1.21.0';
exports.VERSION = '1.22.0';
//# sourceMappingURL=version.js.map

@@ -109,4 +109,4 @@ "use strict";

this._recordMinMax = _recordMinMax;
if (boundaries === undefined || boundaries.length === 0) {
throw new Error('HistogramAggregator should be created with boundaries.');
if (boundaries == null) {
throw new Error('ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array');
}

@@ -113,0 +113,0 @@ // Copy the boundaries array for modification.

{
"name": "@opentelemetry/sdk-metrics",
"version": "1.21.0",
"version": "1.22.0",
"description": "OpenTelemetry metrics SDK",

@@ -59,3 +59,3 @@ "main": "build/src/index.js",

"@babel/preset-env": "7.22.20",
"@opentelemetry/api": ">=1.3.0 <1.8.0",
"@opentelemetry/api": ">=1.3.0 <1.9.0",
"@types/lodash.merge": "4.6.9",

@@ -86,7 +86,7 @@ "@types/mocha": "10.0.6",

"peerDependencies": {
"@opentelemetry/api": ">=1.3.0 <1.8.0"
"@opentelemetry/api": ">=1.3.0 <1.9.0"
},
"dependencies": {
"@opentelemetry/core": "1.21.0",
"@opentelemetry/resources": "1.21.0",
"@opentelemetry/core": "1.22.0",
"@opentelemetry/resources": "1.22.0",
"lodash.merge": "^4.6.2"

@@ -96,3 +96,3 @@ },

"sideEffects": false,
"gitHead": "828f2ed730e4d26d71f92e220f96b60a552a673a"
"gitHead": "7be35c7845e206b27b682e8ce1cee850b09cec04"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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