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

@opentelemetry/exporter-logs-otlp-proto

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-logs-otlp-proto - npm Package Compare versions

Comparing version 0.53.0 to 0.54.0

1

build/esm/platform/browser/OTLPLogExporter.d.ts

@@ -9,4 +9,3 @@ import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';

constructor(config?: OTLPExporterConfigBase);
getDefaultUrl(config: OTLPExporterConfigBase): string;
}
//# sourceMappingURL=OTLPLogExporter.d.ts.map

@@ -33,4 +33,2 @@ /*

import { ProtobufLogsSerializer, } from '@opentelemetry/otlp-transformer';
var DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/logs';
var DEFAULT_COLLECTOR_URL = "http://localhost:4318/" + DEFAULT_COLLECTOR_RESOURCE_PATH;
/**

@@ -43,10 +41,4 @@ * Collector Trace Exporter for Web

if (config === void 0) { config = {}; }
return _super.call(this, config, ProtobufLogsSerializer, 'application/x-protobuf') || this;
return _super.call(this, config, ProtobufLogsSerializer, { 'Content-Type': 'application/x-protobuf' }, 'v1/logs') || this;
}
OTLPLogExporter.prototype.getDefaultUrl = function (config) {
if (typeof config.url === 'string') {
return config.url;
}
return DEFAULT_COLLECTOR_URL;
};
return OTLPLogExporter;

@@ -53,0 +45,0 @@ }(OTLPExporterBrowserBase));

5

build/esm/platform/node/OTLPLogExporter.d.ts

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

import { OTLPExporterConfigBase, OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
import { OTLPExporterNodeBase, OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
import { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';

@@ -8,5 +8,4 @@ import { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';

export declare class OTLPLogExporter extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
constructor(config?: OTLPExporterConfigBase);
getDefaultUrl(config: OTLPExporterConfigBase): string;
constructor(config?: OTLPExporterNodeConfigBase);
}
//# sourceMappingURL=OTLPLogExporter.d.ts.map

@@ -42,4 +42,3 @@ /*

};
import { getEnv, baggageUtils } from '@opentelemetry/core';
import { appendResourcePathToUrl, appendRootPathToUrlIfNeeded, OTLPExporterNodeBase, parseHeaders, } from '@opentelemetry/otlp-exporter-base';
import { OTLPExporterNodeBase, } from '@opentelemetry/otlp-exporter-base';
import { ProtobufLogsSerializer, } from '@opentelemetry/otlp-transformer';

@@ -50,4 +49,2 @@ import { VERSION } from '../../version';

};
var DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/logs';
var DEFAULT_COLLECTOR_URL = "http://localhost:4318/" + DEFAULT_COLLECTOR_RESOURCE_PATH;
/**

@@ -60,17 +57,4 @@ * Collector Trace Exporter for Node

if (config === void 0) { config = {}; }
return _super.call(this, config, ProtobufLogsSerializer, __assign(__assign(__assign(__assign({}, baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS)), parseHeaders(config === null || config === void 0 ? void 0 : config.headers)), USER_AGENT), { 'Content-Type': 'application/x-protobuf' })) || this;
return _super.call(this, config, ProtobufLogsSerializer, __assign(__assign({}, USER_AGENT), { 'Content-Type': 'application/x-protobuf' }), 'LOGS', 'v1/logs') || this;
}
OTLPLogExporter.prototype.getDefaultUrl = function (config) {
if (typeof config.url === 'string') {
return config.url;
}
var env = getEnv();
if (env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length > 0) {
return appendRootPathToUrlIfNeeded(env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT);
}
if (env.OTEL_EXPORTER_OTLP_ENDPOINT.length > 0) {
return appendResourcePathToUrl(env.OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH);
}
return DEFAULT_COLLECTOR_URL;
};
return OTLPLogExporter;

@@ -77,0 +61,0 @@ }(OTLPExporterNodeBase));

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

export declare const VERSION = "0.53.0";
export declare const VERSION = "0.54.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -9,4 +9,3 @@ import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';

constructor(config?: OTLPExporterConfigBase);
getDefaultUrl(config: OTLPExporterConfigBase): string;
}
//# sourceMappingURL=OTLPLogExporter.d.ts.map

@@ -18,4 +18,2 @@ /*

import { ProtobufLogsSerializer, } from '@opentelemetry/otlp-transformer';
const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/logs';
const DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
/**

@@ -26,11 +24,5 @@ * Collector Trace Exporter for Web

constructor(config = {}) {
super(config, ProtobufLogsSerializer, 'application/x-protobuf');
super(config, ProtobufLogsSerializer, { 'Content-Type': 'application/x-protobuf' }, 'v1/logs');
}
getDefaultUrl(config) {
if (typeof config.url === 'string') {
return config.url;
}
return DEFAULT_COLLECTOR_URL;
}
}
//# sourceMappingURL=OTLPLogExporter.js.map

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

import { OTLPExporterConfigBase, OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
import { OTLPExporterNodeBase, OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
import { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';

@@ -8,5 +8,4 @@ import { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';

export declare class OTLPLogExporter extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
constructor(config?: OTLPExporterConfigBase);
getDefaultUrl(config: OTLPExporterConfigBase): string;
constructor(config?: OTLPExporterNodeConfigBase);
}
//# sourceMappingURL=OTLPLogExporter.d.ts.map

@@ -16,4 +16,3 @@ /*

*/
import { getEnv, baggageUtils } from '@opentelemetry/core';
import { appendResourcePathToUrl, appendRootPathToUrlIfNeeded, OTLPExporterNodeBase, parseHeaders, } from '@opentelemetry/otlp-exporter-base';
import { OTLPExporterNodeBase, } from '@opentelemetry/otlp-exporter-base';
import { ProtobufLogsSerializer, } from '@opentelemetry/otlp-transformer';

@@ -24,4 +23,2 @@ import { VERSION } from '../../version';

};
const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/logs';
const DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
/**

@@ -32,18 +29,5 @@ * Collector Trace Exporter for Node

constructor(config = {}) {
super(config, ProtobufLogsSerializer, Object.assign(Object.assign(Object.assign(Object.assign({}, baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS)), parseHeaders(config === null || config === void 0 ? void 0 : config.headers)), USER_AGENT), { 'Content-Type': 'application/x-protobuf' }));
super(config, ProtobufLogsSerializer, Object.assign(Object.assign({}, USER_AGENT), { 'Content-Type': 'application/x-protobuf' }), 'LOGS', 'v1/logs');
}
getDefaultUrl(config) {
if (typeof config.url === 'string') {
return config.url;
}
const env = getEnv();
if (env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length > 0) {
return appendRootPathToUrlIfNeeded(env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT);
}
if (env.OTEL_EXPORTER_OTLP_ENDPOINT.length > 0) {
return appendResourcePathToUrl(env.OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH);
}
return DEFAULT_COLLECTOR_URL;
}
}
//# sourceMappingURL=OTLPLogExporter.js.map

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

export declare const VERSION = "0.53.0";
export declare const VERSION = "0.54.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -9,4 +9,3 @@ import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';

constructor(config?: OTLPExporterConfigBase);
getDefaultUrl(config: OTLPExporterConfigBase): string;
}
//# sourceMappingURL=OTLPLogExporter.d.ts.map

@@ -21,4 +21,2 @@ "use strict";

const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");
const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/logs';
const DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
/**

@@ -29,12 +27,6 @@ * Collector Trace Exporter for Web

constructor(config = {}) {
super(config, otlp_transformer_1.ProtobufLogsSerializer, 'application/x-protobuf');
super(config, otlp_transformer_1.ProtobufLogsSerializer, { 'Content-Type': 'application/x-protobuf' }, 'v1/logs');
}
getDefaultUrl(config) {
if (typeof config.url === 'string') {
return config.url;
}
return DEFAULT_COLLECTOR_URL;
}
}
exports.OTLPLogExporter = OTLPLogExporter;
//# sourceMappingURL=OTLPLogExporter.js.map

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

import { OTLPExporterConfigBase, OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
import { OTLPExporterNodeBase, OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
import { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';

@@ -8,5 +8,4 @@ import { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';

export declare class OTLPLogExporter extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
constructor(config?: OTLPExporterConfigBase);
getDefaultUrl(config: OTLPExporterConfigBase): string;
constructor(config?: OTLPExporterNodeConfigBase);
}
//# sourceMappingURL=OTLPLogExporter.d.ts.map

@@ -19,3 +19,2 @@ "use strict";

exports.OTLPLogExporter = void 0;
const core_1 = require("@opentelemetry/core");
const otlp_exporter_base_1 = require("@opentelemetry/otlp-exporter-base");

@@ -27,4 +26,2 @@ const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");

};
const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/logs';
const DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
/**

@@ -35,19 +32,6 @@ * Collector Trace Exporter for Node

constructor(config = {}) {
super(config, otlp_transformer_1.ProtobufLogsSerializer, Object.assign(Object.assign(Object.assign(Object.assign({}, core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_LOGS_HEADERS)), (0, otlp_exporter_base_1.parseHeaders)(config === null || config === void 0 ? void 0 : config.headers)), USER_AGENT), { 'Content-Type': 'application/x-protobuf' }));
super(config, otlp_transformer_1.ProtobufLogsSerializer, Object.assign(Object.assign({}, USER_AGENT), { 'Content-Type': 'application/x-protobuf' }), 'LOGS', 'v1/logs');
}
getDefaultUrl(config) {
if (typeof config.url === 'string') {
return config.url;
}
const env = (0, core_1.getEnv)();
if (env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT.length > 0) {
return (0, otlp_exporter_base_1.appendRootPathToUrlIfNeeded)(env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT);
}
if (env.OTEL_EXPORTER_OTLP_ENDPOINT.length > 0) {
return (0, otlp_exporter_base_1.appendResourcePathToUrl)(env.OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH);
}
return DEFAULT_COLLECTOR_URL;
}
}
exports.OTLPLogExporter = OTLPLogExporter;
//# sourceMappingURL=OTLPLogExporter.js.map

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

export declare const VERSION = "0.53.0";
export declare const VERSION = "0.54.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.53.0';
exports.VERSION = '0.54.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/exporter-logs-otlp-proto",
"version": "0.53.0",
"version": "0.54.0",
"description": "An OTLP exporter to send logs using protobuf over HTTP",

@@ -30,3 +30,2 @@ "main": "build/src/index.js",

"peer-api-check": "node ../../../scripts/peer-api-check.js",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../",
"align-api-deps": "node ../../../scripts/align-api-deps.js"

@@ -69,9 +68,8 @@ },

"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.3",
"@babel/preset-env": "7.25.4",
"@opentelemetry/api": "1.9.0",
"@types/mocha": "10.0.7",
"@types/mocha": "10.0.8",
"@types/node": "18.6.5",
"@types/sinon": "17.0.3",
"babel-plugin-istanbul": "7.0.0",
"codecov": "3.8.3",
"cross-var": "1.1.0",

@@ -90,3 +88,3 @@ "karma": "6.4.4",

"typescript": "4.4.4",
"webpack": "5.89.0",
"webpack": "5.94.0",
"webpack-cli": "5.1.4",

@@ -96,16 +94,16 @@ "webpack-merge": "5.10.0"

"peerDependencies": {
"@opentelemetry/api": "^1.0.0"
"@opentelemetry/api": "^1.3.0"
},
"dependencies": {
"@opentelemetry/api-logs": "0.53.0",
"@opentelemetry/core": "1.26.0",
"@opentelemetry/otlp-exporter-base": "0.53.0",
"@opentelemetry/otlp-transformer": "0.53.0",
"@opentelemetry/resources": "1.26.0",
"@opentelemetry/sdk-logs": "0.53.0",
"@opentelemetry/sdk-trace-base": "1.26.0"
"@opentelemetry/api-logs": "0.54.0",
"@opentelemetry/core": "1.27.0",
"@opentelemetry/otlp-exporter-base": "0.54.0",
"@opentelemetry/otlp-transformer": "0.54.0",
"@opentelemetry/resources": "1.27.0",
"@opentelemetry/sdk-logs": "0.54.0",
"@opentelemetry/sdk-trace-base": "1.27.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-logs-otlp-proto",
"sideEffects": false,
"gitHead": "720bc8c70d47029cb6b41a34ffdc3d25cbaa2f80"
"gitHead": "eb3ca4fb07ee31c62093f5fcec56575573c902ce"
}

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

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