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

@opentelemetry/api-metrics

Package Overview
Dependencies
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/api-metrics - npm Package Compare versions

Comparing version 0.19.0 to 0.19.1-alpha.11

build/esm/api/global-utils.d.ts

10

build/src/types/Metric.d.ts

@@ -34,2 +34,6 @@ import { BoundBaseObserver, BoundCounter, BoundValueRecorder } from './BoundInstrument';

boundaries?: number[];
/**
* Aggregation Temporality of metric
*/
aggregationTemporality?: AggregationTemporality;
}

@@ -47,2 +51,8 @@ export interface BatchObserverOptions {

}
/** The kind of aggregator. */
export declare enum AggregationTemporality {
AGGREGATION_TEMPORALITY_UNSPECIFIED = 0,
AGGREGATION_TEMPORALITY_DELTA = 1,
AGGREGATION_TEMPORALITY_CUMULATIVE = 2
}
/**

@@ -49,0 +59,0 @@ * Metric represents a base class for different types of metric

9

build/src/types/Metric.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.ValueType = void 0;
exports.AggregationTemporality = exports.ValueType = void 0;
/** The Type of value. It describes how the data is reported. */

@@ -26,2 +26,9 @@ var ValueType;

})(ValueType = exports.ValueType || (exports.ValueType = {}));
/** The kind of aggregator. */
var AggregationTemporality;
(function (AggregationTemporality) {
AggregationTemporality[AggregationTemporality["AGGREGATION_TEMPORALITY_UNSPECIFIED"] = 0] = "AGGREGATION_TEMPORALITY_UNSPECIFIED";
AggregationTemporality[AggregationTemporality["AGGREGATION_TEMPORALITY_DELTA"] = 1] = "AGGREGATION_TEMPORALITY_DELTA";
AggregationTemporality[AggregationTemporality["AGGREGATION_TEMPORALITY_CUMULATIVE"] = 2] = "AGGREGATION_TEMPORALITY_CUMULATIVE";
})(AggregationTemporality = exports.AggregationTemporality || (exports.AggregationTemporality = {}));
//# sourceMappingURL=Metric.js.map

19

package.json
{
"name": "@opentelemetry/api-metrics",
"version": "0.19.0",
"version": "0.19.1-alpha.11+2afcc7c9",
"description": "Public metrics API for OpenTelemetry",
"main": "build/src/index.js",
"module": "build/esm/index.js",
"types": "build/src/index.d.ts",
"browser": {
"./src/platform/index.ts": "./src/platform/browser/index.ts",
"./build/esm/platform/index.js": "./build/esm/platform/browser/index.js",
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"

@@ -13,4 +15,4 @@ },

"scripts": {
"compile": "tsc --build",
"clean": "tsc --build --clean",
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",

@@ -24,3 +26,3 @@ "test:browser": "nyc karma start --single-run",

"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch"
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
},

@@ -42,2 +44,5 @@ "keywords": [

"files": [
"build/esm/**/*.js",
"build/esm/**/*.js.map",
"build/esm/**/*.d.ts",
"build/src/**/*.js",

@@ -59,3 +64,3 @@ "build/src/**/*.js.map",

"@types/mocha": "8.2.2",
"@types/node": "14.14.37",
"@types/node": "14.14.43",
"@types/webpack-env": "1.16.0",

@@ -73,3 +78,3 @@ "codecov": "3.8.1",

"nyc": "15.1.0",
"ts-loader": "8.1.0",
"ts-loader": "8.2.0",
"ts-mocha": "8.0.0",

@@ -79,3 +84,3 @@ "typescript": "4.2.4",

},
"gitHead": "0c15999dccd377294a03cf7d36085216d6e8c5c1"
"gitHead": "2afcc7c90d93bac4fa9180f4fd312ed01370b2b5"
}

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