Socket
Socket
Sign inDemoInstall

@opentelemetry/otlp-transformer

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/otlp-transformer - npm Package Compare versions

Comparing version 0.31.0 to 0.32.0

2

build/esm/metrics/index.d.ts

@@ -1,4 +0,4 @@

import type { ResourceMetrics } from '@opentelemetry/sdk-metrics-base';
import type { ResourceMetrics } from '@opentelemetry/sdk-metrics';
import type { IExportMetricsServiceRequest } from './types';
export declare function createExportMetricsServiceRequest(resourceMetrics: ResourceMetrics[]): IExportMetricsServiceRequest;
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import { MetricData, ResourceMetrics, ScopeMetrics } from '@opentelemetry/sdk-metrics-base';
import { MetricData, ResourceMetrics, ScopeMetrics } from '@opentelemetry/sdk-metrics';
import { IMetric, IResourceMetrics, IScopeMetrics } from './types';

@@ -3,0 +3,0 @@ export declare function toResourceMetrics(resourceMetrics: ResourceMetrics): IResourceMetrics;

@@ -18,3 +18,3 @@ /*

import { hrTimeToNanoseconds } from '@opentelemetry/core';
import { AggregationTemporality, DataPointType } from '@opentelemetry/sdk-metrics-base';
import { AggregationTemporality, DataPointType } from '@opentelemetry/sdk-metrics';
import { toAttributes } from '../common/internal';

@@ -21,0 +21,0 @@ export function toResourceMetrics(resourceMetrics) {

@@ -1,4 +0,4 @@

import type { ResourceMetrics } from '@opentelemetry/sdk-metrics-base';
import type { ResourceMetrics } from '@opentelemetry/sdk-metrics';
import type { IExportMetricsServiceRequest } from './types';
export declare function createExportMetricsServiceRequest(resourceMetrics: ResourceMetrics[]): IExportMetricsServiceRequest;
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import { MetricData, ResourceMetrics, ScopeMetrics } from '@opentelemetry/sdk-metrics-base';
import { MetricData, ResourceMetrics, ScopeMetrics } from '@opentelemetry/sdk-metrics';
import { IMetric, IResourceMetrics, IScopeMetrics } from './types';

@@ -3,0 +3,0 @@ export declare function toResourceMetrics(resourceMetrics: ResourceMetrics): IResourceMetrics;

@@ -18,3 +18,3 @@ /*

import { hrTimeToNanoseconds } from '@opentelemetry/core';
import { AggregationTemporality, DataPointType } from '@opentelemetry/sdk-metrics-base';
import { AggregationTemporality, DataPointType } from '@opentelemetry/sdk-metrics';
import { toAttributes } from '../common/internal';

@@ -21,0 +21,0 @@ export function toResourceMetrics(resourceMetrics) {

@@ -1,4 +0,4 @@

import type { ResourceMetrics } from '@opentelemetry/sdk-metrics-base';
import type { ResourceMetrics } from '@opentelemetry/sdk-metrics';
import type { IExportMetricsServiceRequest } from './types';
export declare function createExportMetricsServiceRequest(resourceMetrics: ResourceMetrics[]): IExportMetricsServiceRequest;
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import { MetricData, ResourceMetrics, ScopeMetrics } from '@opentelemetry/sdk-metrics-base';
import { MetricData, ResourceMetrics, ScopeMetrics } from '@opentelemetry/sdk-metrics';
import { IMetric, IResourceMetrics, IScopeMetrics } from './types';

@@ -3,0 +3,0 @@ export declare function toResourceMetrics(resourceMetrics: ResourceMetrics): IResourceMetrics;

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

const core_1 = require("@opentelemetry/core");
const sdk_metrics_base_1 = require("@opentelemetry/sdk-metrics-base");
const sdk_metrics_1 = require("@opentelemetry/sdk-metrics");
const internal_1 = require("../common/internal");

@@ -56,3 +56,3 @@ function toResourceMetrics(resourceMetrics) {

const aggregationTemporality = toAggregationTemporality(metricData.aggregationTemporality);
if (metricData.dataPointType === sdk_metrics_base_1.DataPointType.SUM) {
if (metricData.dataPointType === sdk_metrics_1.DataPointType.SUM) {
out.sum = {

@@ -64,3 +64,3 @@ aggregationTemporality,

}
else if (metricData.dataPointType === sdk_metrics_base_1.DataPointType.GAUGE) {
else if (metricData.dataPointType === sdk_metrics_1.DataPointType.GAUGE) {
// Instrument is a gauge.

@@ -71,3 +71,3 @@ out.gauge = {

}
else if (metricData.dataPointType === sdk_metrics_base_1.DataPointType.HISTOGRAM) {
else if (metricData.dataPointType === sdk_metrics_1.DataPointType.HISTOGRAM) {
out.histogram = {

@@ -117,6 +117,6 @@ aggregationTemporality,

function toAggregationTemporality(temporality) {
if (temporality === sdk_metrics_base_1.AggregationTemporality.DELTA) {
if (temporality === sdk_metrics_1.AggregationTemporality.DELTA) {
return 1 /* AGGREGATION_TEMPORALITY_DELTA */;
}
if (temporality === sdk_metrics_base_1.AggregationTemporality.CUMULATIVE) {
if (temporality === sdk_metrics_1.AggregationTemporality.CUMULATIVE) {
return 2 /* AGGREGATION_TEMPORALITY_CUMULATIVE */;

@@ -123,0 +123,0 @@ }

@@ -7,3 +7,3 @@ {

},
"version": "0.31.0",
"version": "0.32.0",
"description": "Transform OpenTelemetry SDK data into OTLP",

@@ -56,7 +56,7 @@ "module": "build/esm/index.js",

"peerDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.2.0"
"@opentelemetry/api": ">=1.0.0 <1.3.0"
},
"devDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.2.0",
"@types/mocha": "8.2.3",
"@opentelemetry/api": ">=1.0.0 <1.3.0",
"@types/mocha": "9.1.1",
"@types/webpack-env": "1.16.3",

@@ -72,8 +72,8 @@ "codecov": "3.8.3",

"mkdirp": "1.0.4",
"mocha": "7.2.0",
"mocha": "10.0.0",
"nyc": "15.1.0",
"protobufjs": "6.11.3",
"rimraf": "3.0.2",
"ts-loader": "8.3.0",
"ts-mocha": "9.0.2",
"ts-loader": "8.4.0",
"ts-mocha": "10.0.0",
"typescript": "4.4.4",

@@ -83,10 +83,10 @@ "webpack": "4.46.0"

"dependencies": {
"@opentelemetry/api-metrics": "0.31.0",
"@opentelemetry/core": "1.5.0",
"@opentelemetry/resources": "1.5.0",
"@opentelemetry/sdk-metrics-base": "0.31.0",
"@opentelemetry/sdk-trace-base": "1.5.0"
"@opentelemetry/api-metrics": "0.32.0",
"@opentelemetry/core": "1.6.0",
"@opentelemetry/resources": "1.6.0",
"@opentelemetry/sdk-metrics": "0.32.0",
"@opentelemetry/sdk-trace-base": "1.6.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-transformer",
"gitHead": "776656b6e0cd0fc49a52b734702bc77110e483f1"
"gitHead": "a5abee69119cc41d9d34f6beb5c1826eef1ac0dd"
}

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

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