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

@opentelemetry/metrics

Package Overview
Dependencies
Maintainers
4
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.19.1-alpha.39 to 0.19.1-alpha.42

3

build/esm/export/types.d.ts
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

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