@opentelemetry/exporter-metrics-otlp-http
Advanced tools
Comparing version 0.39.1 to 0.40.0
@@ -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 @@ } |
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
137720
1156
1
+ Added@opentelemetry/api-logs@0.40.0(transitive)
+ Added@opentelemetry/core@1.14.0(transitive)
+ Added@opentelemetry/otlp-exporter-base@0.40.0(transitive)
+ Added@opentelemetry/otlp-transformer@0.40.0(transitive)
+ Added@opentelemetry/resources@1.14.0(transitive)
+ Added@opentelemetry/sdk-logs@0.40.0(transitive)
+ Added@opentelemetry/sdk-metrics@1.14.0(transitive)
+ Added@opentelemetry/sdk-trace-base@1.14.0(transitive)
+ Added@opentelemetry/semantic-conventions@1.14.0(transitive)
- Removed@opentelemetry/api-logs@0.39.1(transitive)
- Removed@opentelemetry/core@1.13.0(transitive)
- Removed@opentelemetry/otlp-exporter-base@0.39.1(transitive)
- Removed@opentelemetry/otlp-transformer@0.39.1(transitive)
- Removed@opentelemetry/resources@1.13.0(transitive)
- Removed@opentelemetry/sdk-logs@0.39.1(transitive)
- Removed@opentelemetry/sdk-metrics@1.13.0(transitive)
- Removed@opentelemetry/sdk-trace-base@1.13.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.13.0(transitive)
Updated@opentelemetry/core@1.14.0