Socket
Socket
Sign inDemoInstall

@opentelemetry/exporter-metrics-otlp-http

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-metrics-otlp-http - npm Package Compare versions

Comparing version 0.39.1 to 0.40.0

17

build/esm/platform/node/OTLPMetricExporter.js

@@ -31,2 +31,13 @@ /*

})();
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
import { getEnv, baggageUtils } from '@opentelemetry/core';

@@ -36,4 +47,8 @@ import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';

import { createExportMetricsServiceRequest, } from '@opentelemetry/otlp-transformer';
import { VERSION } from '../../version';
var DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/metrics';
var DEFAULT_COLLECTOR_URL = "http://localhost:4318/" + DEFAULT_COLLECTOR_RESOURCE_PATH;
var USER_AGENT = {
'User-Agent': "OTel-OTLP-Exporter-JavaScript/" + VERSION,
};
var OTLPExporterNodeProxy = /** @class */ (function (_super) {

@@ -43,3 +58,3 @@ __extends(OTLPExporterNodeProxy, _super);

var _this = _super.call(this, config) || this;
_this.headers = Object.assign(_this.headers, baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_METRICS_HEADERS));
_this.headers = __assign(__assign(__assign({}, _this.headers), USER_AGENT), baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_METRICS_HEADERS));
return _this;

@@ -46,0 +61,0 @@ }

2

build/esm/version.d.ts

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

export declare const VERSION = "0.39.1";
export declare const VERSION = "0.40.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '0.39.1';
export var VERSION = '0.40.0';
//# sourceMappingURL=version.js.map

@@ -20,8 +20,12 @@ /*

import { createExportMetricsServiceRequest, } from '@opentelemetry/otlp-transformer';
import { VERSION } from '../../version';
const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/metrics';
const DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
const USER_AGENT = {
'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,
};
class OTLPExporterNodeProxy extends OTLPExporterNodeBase {
constructor(config) {
super(config);
this.headers = Object.assign(this.headers, baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_METRICS_HEADERS));
this.headers = Object.assign(Object.assign(Object.assign({}, this.headers), USER_AGENT), baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_METRICS_HEADERS));
}

@@ -28,0 +32,0 @@ convert(metrics) {

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

export declare const VERSION = "0.39.1";
export declare const VERSION = "0.40.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '0.39.1';
export const VERSION = '0.40.0';
//# sourceMappingURL=version.js.map

@@ -23,8 +23,12 @@ "use strict";

const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");
const version_1 = require("../../version");
const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/metrics';
const DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
const USER_AGENT = {
'User-Agent': `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`,
};
class OTLPExporterNodeProxy extends otlp_exporter_base_1.OTLPExporterNodeBase {
constructor(config) {
super(config);
this.headers = Object.assign(this.headers, core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_METRICS_HEADERS));
this.headers = Object.assign(Object.assign(Object.assign({}, this.headers), USER_AGENT), core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_METRICS_HEADERS));
}

@@ -31,0 +35,0 @@ convert(metrics) {

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

export declare const VERSION = "0.39.1";
export declare const VERSION = "0.40.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.39.1';
exports.VERSION = '0.40.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/exporter-metrics-otlp-http",
"version": "0.39.1",
"version": "0.40.0",
"description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector",

@@ -96,11 +96,11 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/core": "1.13.0",
"@opentelemetry/otlp-exporter-base": "0.39.1",
"@opentelemetry/otlp-transformer": "0.39.1",
"@opentelemetry/resources": "1.13.0",
"@opentelemetry/sdk-metrics": "1.13.0"
"@opentelemetry/core": "1.14.0",
"@opentelemetry/otlp-exporter-base": "0.40.0",
"@opentelemetry/otlp-transformer": "0.40.0",
"@opentelemetry/resources": "1.14.0",
"@opentelemetry/sdk-metrics": "1.14.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-http",
"sideEffects": false,
"gitHead": "bba09c0e5a6d92fc71ed08028966ae9d56da53db"
"gitHead": "edebbcc757535bc88f01340409dbbecc0bb6ccf8"
}

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