@opentelemetry/api-metrics
Advanced tools
Comparing version 0.19.0 to 0.19.1-alpha.11
@@ -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 |
@@ -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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125997
111
2186
1