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

@opentelemetry/metrics

Package Overview
Dependencies
Maintainers
5
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/metrics - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

5

build/src/export/ConsoleMetricExporter.js

@@ -35,6 +35,3 @@ "use strict";

.map((k, i) => [k, ts.labelValues[i]])
.reduce((p, c) => ({
...p,
[c[0]]: typeof c[1] === 'string' ? c[1] : c[1].value,
}), {});
.reduce((p, c) => (Object.assign(Object.assign({}, p), { [c[0]]: typeof c[1] === 'string' ? c[1] : c[1].value })), {});
for (const point of ts.points) {

@@ -41,0 +38,0 @@ console.log({ labels, value: point.value });

16

build/src/Meter.js

@@ -62,9 +62,5 @@ "use strict";

}
const opt = {
const opt = Object.assign(Object.assign({
// Counters are defined as monotonic by default
monotonic: true,
logger: this._logger,
...types_1.DEFAULT_METRIC_OPTIONS,
...options,
};
monotonic: true, logger: this._logger }, types_1.DEFAULT_METRIC_OPTIONS), options);
const counter = new Metric_1.CounterMetric(name, opt, () => {

@@ -89,9 +85,5 @@ this._exportOneMetric(name);

}
const opt = {
const opt = Object.assign(Object.assign({
// Gauges are defined as non-monotonic by default
monotonic: false,
logger: this._logger,
...types_1.DEFAULT_METRIC_OPTIONS,
...options,
};
monotonic: false, logger: this._logger }, types_1.DEFAULT_METRIC_OPTIONS), options);
const gauge = new Metric_1.GaugeMetric(name, opt, () => {

@@ -98,0 +90,0 @@ this._exportOneMetric(name);

{
"name": "@opentelemetry/metrics",
"version": "0.3.0",
"version": "0.3.1",
"description": "OpenTelemetry metrics SDK",

@@ -58,6 +58,6 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/base": "^0.3.0",
"@opentelemetry/core": "^0.3.0",
"@opentelemetry/types": "^0.3.0"
"@opentelemetry/base": "^0.3.1",
"@opentelemetry/core": "^0.3.1",
"@opentelemetry/types": "^0.3.1"
}
}
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