@opentelemetry/metrics
Advanced tools
Comparing version 0.19.1-alpha.39 to 0.19.1-alpha.42
import { HrTime } from '@opentelemetry/api'; | ||
import { Labels, ValueType } from '@opentelemetry/api-metrics'; | ||
import { Labels, AggregationTemporality, ValueType } from '@opentelemetry/api-metrics'; | ||
import { ExportResult, InstrumentationLibrary } from '@opentelemetry/core'; | ||
@@ -55,2 +55,3 @@ import { Resource } from '@opentelemetry/resources'; | ||
readonly aggregator: Aggregator; | ||
readonly aggregationTemporality: AggregationTemporality; | ||
readonly resource: Resource; | ||
@@ -57,0 +58,0 @@ readonly instrumentationLibrary: InstrumentationLibrary; |
@@ -17,2 +17,3 @@ import * as api from '@opentelemetry/api-metrics'; | ||
protected readonly _boundaries: number[] | undefined; | ||
protected readonly _aggregationTemporality: api.AggregationTemporality; | ||
private readonly _instruments; | ||
@@ -41,2 +42,3 @@ constructor(_name: string, _options: api.MetricOptions, _kind: MetricKind, resource: Resource, instrumentationLibrary: InstrumentationLibrary); | ||
getKind(): MetricKind; | ||
getAggregationTemporality(): api.AggregationTemporality; | ||
getMetricRecord(): Promise<MetricRecord[]>; | ||
@@ -43,0 +45,0 @@ private _getMetricDescriptor; |
@@ -45,2 +45,6 @@ var __assign = (this && this.__assign) || function () { | ||
this._descriptor = this._getMetricDescriptor(); | ||
this._aggregationTemporality = | ||
_options.aggregationTemporality === undefined | ||
? api.AggregationTemporality.AGGREGATION_TEMPORALITY_CUMULATIVE | ||
: _options.aggregationTemporality; | ||
} | ||
@@ -81,2 +85,5 @@ /** | ||
}; | ||
Metric.prototype.getAggregationTemporality = function () { | ||
return this._aggregationTemporality; | ||
}; | ||
Metric.prototype.getMetricRecord = function () { | ||
@@ -89,2 +96,3 @@ var _this = this; | ||
aggregator: instrument.getAggregator(), | ||
aggregationTemporality: _this.getAggregationTemporality(), | ||
resource: _this.resource, | ||
@@ -91,0 +99,0 @@ instrumentationLibrary: _this.instrumentationLibrary, |
import { HrTime } from '@opentelemetry/api'; | ||
import { Labels, ValueType } from '@opentelemetry/api-metrics'; | ||
import { Labels, AggregationTemporality, ValueType } from '@opentelemetry/api-metrics'; | ||
import { ExportResult, InstrumentationLibrary } from '@opentelemetry/core'; | ||
@@ -55,2 +55,3 @@ import { Resource } from '@opentelemetry/resources'; | ||
readonly aggregator: Aggregator; | ||
readonly aggregationTemporality: AggregationTemporality; | ||
readonly resource: Resource; | ||
@@ -57,0 +58,0 @@ readonly instrumentationLibrary: InstrumentationLibrary; |
@@ -17,2 +17,3 @@ import * as api from '@opentelemetry/api-metrics'; | ||
protected readonly _boundaries: number[] | undefined; | ||
protected readonly _aggregationTemporality: api.AggregationTemporality; | ||
private readonly _instruments; | ||
@@ -41,2 +42,3 @@ constructor(_name: string, _options: api.MetricOptions, _kind: MetricKind, resource: Resource, instrumentationLibrary: InstrumentationLibrary); | ||
getKind(): MetricKind; | ||
getAggregationTemporality(): api.AggregationTemporality; | ||
getMetricRecord(): Promise<MetricRecord[]>; | ||
@@ -43,0 +45,0 @@ private _getMetricDescriptor; |
@@ -37,2 +37,6 @@ "use strict"; | ||
this._descriptor = this._getMetricDescriptor(); | ||
this._aggregationTemporality = | ||
_options.aggregationTemporality === undefined | ||
? api.AggregationTemporality.AGGREGATION_TEMPORALITY_CUMULATIVE | ||
: _options.aggregationTemporality; | ||
} | ||
@@ -73,2 +77,5 @@ /** | ||
} | ||
getAggregationTemporality() { | ||
return this._aggregationTemporality; | ||
} | ||
getMetricRecord() { | ||
@@ -80,2 +87,3 @@ return new Promise(resolve => { | ||
aggregator: instrument.getAggregator(), | ||
aggregationTemporality: this.getAggregationTemporality(), | ||
resource: this.resource, | ||
@@ -82,0 +90,0 @@ instrumentationLibrary: this.instrumentationLibrary, |
{ | ||
"name": "@opentelemetry/metrics", | ||
"version": "0.19.1-alpha.39+23ba4bfd", | ||
"version": "0.19.1-alpha.42+b9c84261", | ||
"description": "OpenTelemetry metrics SDK", | ||
@@ -66,8 +66,8 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/api-metrics": "^0.19.1-alpha.39+23ba4bfd", | ||
"@opentelemetry/core": "^0.19.1-alpha.39+23ba4bfd", | ||
"@opentelemetry/resources": "^0.19.1-alpha.39+23ba4bfd", | ||
"@opentelemetry/api-metrics": "^0.19.1-alpha.42+b9c84261", | ||
"@opentelemetry/core": "^0.19.0", | ||
"@opentelemetry/resources": "^0.19.0", | ||
"lodash.merge": "^4.6.2" | ||
}, | ||
"gitHead": "23ba4bfdc77c8bf594bf0c817320a31f59ca0bd4" | ||
"gitHead": "b9c842613c4439435f1644c8c8e288d1fd0e384c" | ||
} |
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
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
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
267138
4367
+ Added@opentelemetry/core@0.19.0(transitive)
+ Added@opentelemetry/resources@0.19.0(transitive)
- Removed@opentelemetry/core@0.19.1-alpha.43(transitive)
- Removed@opentelemetry/resources@0.19.1-alpha.43(transitive)
- Removed@opentelemetry/semantic-conventions@0.19.1-alpha.43(transitive)
Updated@opentelemetry/core@^0.19.0