@opentelemetry/metrics
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -18,2 +18,3 @@ /*! | ||
import { ExportResult } from '@opentelemetry/core'; | ||
import { Resource } from '@opentelemetry/resources'; | ||
/** The kind of metric. */ | ||
@@ -65,2 +66,3 @@ export declare enum MetricKind { | ||
readonly aggregator: Aggregator; | ||
readonly resource: Resource; | ||
} | ||
@@ -67,0 +69,0 @@ export interface MetricDescriptor { |
@@ -64,6 +64,6 @@ /*! | ||
* @param value the value to add. | ||
* @param labels key-values pairs that are associated with a specific metric | ||
* @param [labels = {}] key-values pairs that are associated with a specific metric | ||
* that you want to record. | ||
*/ | ||
add(value: number, labels: api.Labels): void; | ||
add(value: number, labels?: api.Labels): void; | ||
} | ||
@@ -75,3 +75,3 @@ export declare class MeasureMetric extends Metric<BoundMeasure> implements api.Measure { | ||
protected _makeInstrument(labels: api.Labels): BoundMeasure; | ||
record(value: number, labels: api.Labels): void; | ||
record(value: number, labels?: api.Labels): void; | ||
} | ||
@@ -78,0 +78,0 @@ /** This is a SDK implementation of Observer Metric. */ |
@@ -69,2 +69,3 @@ "use strict"; | ||
aggregator: instrument.getAggregator(), | ||
resource: this.resource, | ||
})); | ||
@@ -99,6 +100,6 @@ } | ||
* @param value the value to add. | ||
* @param labels key-values pairs that are associated with a specific metric | ||
* @param [labels = {}] key-values pairs that are associated with a specific metric | ||
* that you want to record. | ||
*/ | ||
add(value, labels) { | ||
add(value, labels = {}) { | ||
this.bind(labels).add(value); | ||
@@ -117,3 +118,3 @@ } | ||
} | ||
record(value, labels) { | ||
record(value, labels = {}) { | ||
this.bind(labels).record(value); | ||
@@ -120,0 +121,0 @@ } |
@@ -16,3 +16,3 @@ /*! | ||
*/ | ||
export declare const VERSION = "0.8.0"; | ||
export declare const VERSION = "0.8.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -19,3 +19,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.8.0'; | ||
exports.VERSION = '0.8.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/metrics", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "OpenTelemetry metrics SDK", | ||
@@ -49,7 +49,7 @@ "main": "build/src/index.js", | ||
"gts": "^1.1.0", | ||
"mocha": "^6.2.0", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^3.0.0", | ||
"sinon": "^7.5.0", | ||
"ts-mocha": "^6.0.0", | ||
"ts-mocha": "^7.0.0", | ||
"ts-node": "^8.6.2", | ||
@@ -61,6 +61,6 @@ "tslint-consistent-codestyle": "^1.16.0", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.8.0", | ||
"@opentelemetry/core": "^0.8.0", | ||
"@opentelemetry/resources": "^0.8.0" | ||
"@opentelemetry/api": "^0.8.1", | ||
"@opentelemetry/core": "^0.8.1", | ||
"@opentelemetry/resources": "^0.8.1" | ||
} | ||
} |
87035
43
1819
Updated@opentelemetry/api@^0.8.1
Updated@opentelemetry/core@^0.8.1