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

@opentelemetry/exporter-trace-otlp-http

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.27.0 to 0.28.0

build/esnext/index.d.ts

2

build/esm/index.d.ts

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

export * from './OTLPExporterBase';
export * from './platform';
export * as otlpTypes from './types';
export { toCollectorResource, toOTLPExportTraceServiceRequest } from './transform';
export { appendResourcePathToUrlIfNotPresent } from './util';
//# sourceMappingURL=index.d.ts.map

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

*/
export * from './OTLPExporterBase';
export * from './platform';

@@ -22,3 +21,2 @@ import * as otlpTypes_1 from './types';

export { toCollectorResource, toOTLPExportTraceServiceRequest } from './transform';
export { appendResourcePathToUrlIfNotPresent } from './util';
//# sourceMappingURL=index.js.map
export * from './OTLPTraceExporter';
export * from './OTLPExporterBrowserBase';
//# sourceMappingURL=index.d.ts.map

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

export * from './OTLPTraceExporter';
export * from './OTLPExporterBrowserBase';
//# sourceMappingURL=index.js.map

@@ -1,5 +0,5 @@

import { OTLPExporterConfigBase } from '../../types';
import { OTLPExporterBrowserBase } from './OTLPExporterBrowserBase';
import { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
import * as otlpTypes from '../../types';
import { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
/**

@@ -6,0 +6,0 @@ * Collector Trace Exporter for Web

@@ -31,8 +31,7 @@ /*

})();
import { OTLPExporterBrowserBase } from './OTLPExporterBrowserBase';
import { appendResourcePathToUrlIfNotPresent, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
import { toOTLPExportTraceServiceRequest } from '../../transform';
import { getEnv, baggageUtils } from '@opentelemetry/core';
import { appendResourcePathToUrlIfNotPresent } from '../../util';
var DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';
var DEFAULT_COLLECTOR_URL = "http://localhost:55681" + DEFAULT_COLLECTOR_RESOURCE_PATH;
var DEFAULT_COLLECTOR_URL = "http://localhost:4318" + DEFAULT_COLLECTOR_RESOURCE_PATH;
/**

@@ -39,0 +38,0 @@ * Collector Trace Exporter for Web

export * from './node';
export { OTLPExporterBrowserBase } from './browser';
//# sourceMappingURL=index.d.ts.map

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

export * from './node';
export { OTLPExporterBrowserBase } from './browser';
//# sourceMappingURL=index.js.map
export * from './OTLPTraceExporter';
export * from './OTLPExporterNodeBase';
export * from './util';
export * from './types';
//# sourceMappingURL=index.d.ts.map

@@ -17,5 +17,2 @@ /*

export * from './OTLPTraceExporter';
export * from './OTLPExporterNodeBase';
export * from './util';
export * from './types';
//# sourceMappingURL=index.js.map
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
import { OTLPExporterNodeBase } from './OTLPExporterNodeBase';
import { OTLPExporterNodeConfigBase } from './types';
import * as otlpTypes from '../../types';
import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
import { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
/**

@@ -6,0 +6,0 @@ * Collector Trace Exporter for Node

@@ -31,8 +31,8 @@ /*

})();
import { OTLPExporterNodeBase } from './OTLPExporterNodeBase';
import { toOTLPExportTraceServiceRequest } from '../../transform';
import { getEnv, baggageUtils } from '@opentelemetry/core';
import { appendResourcePathToUrlIfNotPresent } from '../../util';
import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
import { appendResourcePathToUrlIfNotPresent } from '@opentelemetry/otlp-exporter-base';
var DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';
var DEFAULT_COLLECTOR_URL = "http://localhost:55681" + DEFAULT_COLLECTOR_RESOURCE_PATH;
var DEFAULT_COLLECTOR_URL = "http://localhost:4318" + DEFAULT_COLLECTOR_RESOURCE_PATH;
/**

@@ -39,0 +39,0 @@ * Collector Trace Exporter for Node

@@ -5,4 +5,4 @@ import { SpanAttributes, SpanKind, SpanStatus, TraceState } from '@opentelemetry/api';

import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base';
import { OTLPExporterBase } from './OTLPExporterBase';
import { opentelemetryProto, OTLPExporterConfigBase } from './types';
import { opentelemetryProto } from './types';
import { OTLPExporterBase, OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
/**

@@ -9,0 +9,0 @@ * Converts attributes to KeyValue array

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

*/
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
import * as core from '@opentelemetry/core';

@@ -262,7 +278,7 @@ import { OTLP_SPAN_KIND_MAPPING, opentelemetryProto, } from './types';

return Array.from(groupedSpans, function (_a) {
var resource = _a[0], libSpans = _a[1];
var _b = __read(_a, 2), resource = _b[0], libSpans = _b[1];
return {
resource: toCollectorResource(resource, baseAttributes),
instrumentationLibrarySpans: Array.from(libSpans, function (_a) {
var instrumentationLibrary = _a[0], spans = _a[1];
var _b = __read(_a, 2), instrumentationLibrary = _b[0], spans = _b[1];
return toCollectorInstrumentationLibrarySpans(instrumentationLibrary, spans, useHex);

@@ -269,0 +285,0 @@ }),

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

import { SpanAttributes, SpanStatusCode } from '@opentelemetry/api';
import { SpanStatusCode } from '@opentelemetry/api';
export declare namespace opentelemetryProto {

@@ -200,34 +200,2 @@ namespace collector {

/**
* Interface for handling error
*/
export declare class OTLPExporterError extends Error {
readonly code?: number;
readonly name: string;
readonly data?: string;
constructor(message?: string, code?: number, data?: string);
}
/**
* Interface for handling export service errors
*/
export interface ExportServiceError {
name: string;
code: number;
details: string;
metadata: {
[key: string]: unknown;
};
message: string;
stack: string;
}
/**
* Collector Exporter base config
*/
export interface OTLPExporterConfigBase {
headers?: Partial<Record<string, unknown>>;
hostname?: string;
attributes?: SpanAttributes;
url?: string;
concurrencyLimit?: number;
}
/**
* Mapping between api SpanKind and proto SpanKind

@@ -234,0 +202,0 @@ */

@@ -16,17 +16,2 @@ /*

*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var _a;

@@ -153,17 +138,2 @@ import { SpanKind } from '@opentelemetry/api';

/**
* Interface for handling error
*/
var OTLPExporterError = /** @class */ (function (_super) {
__extends(OTLPExporterError, _super);
function OTLPExporterError(message, code, data) {
var _this = _super.call(this, message) || this;
_this.name = 'OTLPExporterError';
_this.data = data;
_this.code = code;
return _this;
}
return OTLPExporterError;
}(Error));
export { OTLPExporterError };
/**
* Mapping between api SpanKind and proto SpanKind

@@ -170,0 +140,0 @@ */

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

export declare const VERSION = "0.27.0";
export declare const VERSION = "0.28.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

export * from './OTLPExporterBase';
export * from './platform';
export * as otlpTypes from './types';
export { toCollectorResource, toOTLPExportTraceServiceRequest } from './transform';
export { appendResourcePathToUrlIfNotPresent } from './util';
//# sourceMappingURL=index.d.ts.map

@@ -28,4 +28,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.appendResourcePathToUrlIfNotPresent = exports.toOTLPExportTraceServiceRequest = exports.toCollectorResource = exports.otlpTypes = void 0;
__exportStar(require("./OTLPExporterBase"), exports);
exports.toOTLPExportTraceServiceRequest = exports.toCollectorResource = exports.otlpTypes = void 0;
__exportStar(require("./platform"), exports);

@@ -36,4 +35,2 @@ exports.otlpTypes = require("./types");

Object.defineProperty(exports, "toOTLPExportTraceServiceRequest", { enumerable: true, get: function () { return transform_1.toOTLPExportTraceServiceRequest; } });
var util_1 = require("./util");
Object.defineProperty(exports, "appendResourcePathToUrlIfNotPresent", { enumerable: true, get: function () { return util_1.appendResourcePathToUrlIfNotPresent; } });
//# sourceMappingURL=index.js.map
export * from './OTLPTraceExporter';
export * from './OTLPExporterBrowserBase';
//# sourceMappingURL=index.d.ts.map

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

__exportStar(require("./OTLPTraceExporter"), exports);
__exportStar(require("./OTLPExporterBrowserBase"), exports);
//# sourceMappingURL=index.js.map

@@ -1,5 +0,5 @@

import { OTLPExporterConfigBase } from '../../types';
import { OTLPExporterBrowserBase } from './OTLPExporterBrowserBase';
import { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
import * as otlpTypes from '../../types';
import { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
/**

@@ -6,0 +6,0 @@ * Collector Trace Exporter for Web

@@ -19,18 +19,17 @@ "use strict";

exports.OTLPTraceExporter = void 0;
const OTLPExporterBrowserBase_1 = require("./OTLPExporterBrowserBase");
const otlp_exporter_base_1 = require("@opentelemetry/otlp-exporter-base");
const transform_1 = require("../../transform");
const core_1 = require("@opentelemetry/core");
const util_1 = require("../../util");
const DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';
const DEFAULT_COLLECTOR_URL = `http://localhost:55681${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
const DEFAULT_COLLECTOR_URL = `http://localhost:4318${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
/**
* Collector Trace Exporter for Web
*/
class OTLPTraceExporter extends OTLPExporterBrowserBase_1.OTLPExporterBrowserBase {
class OTLPTraceExporter extends otlp_exporter_base_1.OTLPExporterBrowserBase {
constructor(config = {}) {
super(config);
this._headers = Object.assign(this._headers, core_1.baggageUtils.parseKeyPairsIntoRecord(core_1.getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS));
this._headers = Object.assign(this._headers, core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS));
}
convert(spans) {
return transform_1.toOTLPExportTraceServiceRequest(spans, this, true);
return (0, transform_1.toOTLPExportTraceServiceRequest)(spans, this, true);
}

@@ -40,6 +39,6 @@ getDefaultUrl(config) {

? config.url
: core_1.getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0
? core_1.getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
: core_1.getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0
? util_1.appendResourcePathToUrlIfNotPresent(core_1.getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
: (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0
? (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
: (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0
? (0, otlp_exporter_base_1.appendResourcePathToUrlIfNotPresent)((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
: DEFAULT_COLLECTOR_URL;

@@ -46,0 +45,0 @@ }

export * from './node';
export { OTLPExporterBrowserBase } from './browser';
//# sourceMappingURL=index.d.ts.map

@@ -28,6 +28,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.OTLPExporterBrowserBase = void 0;
__exportStar(require("./node"), exports);
var browser_1 = require("./browser");
Object.defineProperty(exports, "OTLPExporterBrowserBase", { enumerable: true, get: function () { return browser_1.OTLPExporterBrowserBase; } });
//# sourceMappingURL=index.js.map
export * from './OTLPTraceExporter';
export * from './OTLPExporterNodeBase';
export * from './util';
export * from './types';
//# sourceMappingURL=index.d.ts.map

@@ -29,5 +29,2 @@ "use strict";

__exportStar(require("./OTLPTraceExporter"), exports);
__exportStar(require("./OTLPExporterNodeBase"), exports);
__exportStar(require("./util"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
import { OTLPExporterNodeBase } from './OTLPExporterNodeBase';
import { OTLPExporterNodeConfigBase } from './types';
import * as otlpTypes from '../../types';
import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
import { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
/**

@@ -6,0 +6,0 @@ * Collector Trace Exporter for Node

@@ -19,18 +19,18 @@ "use strict";

exports.OTLPTraceExporter = void 0;
const OTLPExporterNodeBase_1 = require("./OTLPExporterNodeBase");
const transform_1 = require("../../transform");
const core_1 = require("@opentelemetry/core");
const util_1 = require("../../util");
const otlp_exporter_base_1 = require("@opentelemetry/otlp-exporter-base");
const otlp_exporter_base_2 = require("@opentelemetry/otlp-exporter-base");
const DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';
const DEFAULT_COLLECTOR_URL = `http://localhost:55681${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
const DEFAULT_COLLECTOR_URL = `http://localhost:4318${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
/**
* Collector Trace Exporter for Node
*/
class OTLPTraceExporter extends OTLPExporterNodeBase_1.OTLPExporterNodeBase {
class OTLPTraceExporter extends otlp_exporter_base_1.OTLPExporterNodeBase {
constructor(config = {}) {
super(config);
this.headers = Object.assign(this.headers, core_1.baggageUtils.parseKeyPairsIntoRecord(core_1.getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS));
this.headers = Object.assign(this.headers, core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS));
}
convert(spans) {
return transform_1.toOTLPExportTraceServiceRequest(spans, this, true);
return (0, transform_1.toOTLPExportTraceServiceRequest)(spans, this, true);
}

@@ -40,6 +40,6 @@ getDefaultUrl(config) {

? config.url
: core_1.getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0
? core_1.getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
: core_1.getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0
? util_1.appendResourcePathToUrlIfNotPresent(core_1.getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
: (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0
? (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
: (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0
? (0, otlp_exporter_base_2.appendResourcePathToUrlIfNotPresent)((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
: DEFAULT_COLLECTOR_URL;

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

@@ -5,4 +5,4 @@ import { SpanAttributes, SpanKind, SpanStatus, TraceState } from '@opentelemetry/api';

import { ReadableSpan, TimedEvent } from '@opentelemetry/sdk-trace-base';
import { OTLPExporterBase } from './OTLPExporterBase';
import { opentelemetryProto, OTLPExporterConfigBase } from './types';
import { opentelemetryProto } from './types';
import { OTLPExporterBase, OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
/**

@@ -9,0 +9,0 @@ * Converts attributes to KeyValue array

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

import { SpanAttributes, SpanStatusCode } from '@opentelemetry/api';
import { SpanStatusCode } from '@opentelemetry/api';
export declare namespace opentelemetryProto {

@@ -200,34 +200,2 @@ namespace collector {

/**
* Interface for handling error
*/
export declare class OTLPExporterError extends Error {
readonly code?: number;
readonly name: string;
readonly data?: string;
constructor(message?: string, code?: number, data?: string);
}
/**
* Interface for handling export service errors
*/
export interface ExportServiceError {
name: string;
code: number;
details: string;
metadata: {
[key: string]: unknown;
};
message: string;
stack: string;
}
/**
* Collector Exporter base config
*/
export interface OTLPExporterConfigBase {
headers?: Partial<Record<string, unknown>>;
hostname?: string;
attributes?: SpanAttributes;
url?: string;
concurrencyLimit?: number;
}
/**
* Mapping between api SpanKind and proto SpanKind

@@ -234,0 +202,0 @@ */

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.OTLP_SPAN_KIND_MAPPING = exports.OTLPExporterError = exports.opentelemetryProto = void 0;
exports.OTLP_SPAN_KIND_MAPPING = exports.opentelemetryProto = void 0;
const api_1 = require("@opentelemetry/api");

@@ -140,14 +140,2 @@ /* eslint-disable @typescript-eslint/no-namespace */

/**
* Interface for handling error
*/
class OTLPExporterError extends Error {
constructor(message, code, data) {
super(message);
this.name = 'OTLPExporterError';
this.data = data;
this.code = code;
}
}
exports.OTLPExporterError = OTLPExporterError;
/**
* Mapping between api SpanKind and proto SpanKind

@@ -154,0 +142,0 @@ */

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

export declare const VERSION = "0.27.0";
export declare const VERSION = "0.28.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.27.0';
exports.VERSION = '0.28.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/exporter-trace-otlp-http",
"version": "0.27.0",
"version": "0.28.0",
"description": "OpenTelemetry Collector Trace Exporter allows user to send collected traces to the OpenTelemetry Collector",
"main": "build/src/index.js",
"module": "build/esm/index.js",
"esnext": "build/esnext/index.js",
"types": "build/src/index.d.ts",

@@ -12,8 +13,10 @@ "repository": "open-telemetry/opentelemetry-js",

"./build/esm/platform/index.js": "./build/esm/platform/browser/index.js",
"./build/esnext/platform/index.js": "./build/esnext/platform/browser/index.js",
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
},
"scripts": {
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"prepublishOnly": "npm run compile",
"compile": "tsc --build tsconfig.all.json",
"clean": "tsc --build --clean tsconfig.all.json",
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../",
"lint": "eslint . --ext .ts",

@@ -26,5 +29,7 @@ "lint:fix": "eslint . --ext .ts --fix",

"version": "node ../../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
"watch": "tsc --build --watch tsconfig.all.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",
"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../"
},

@@ -43,3 +48,3 @@ "keywords": [

"engines": {
"node": ">=8.0.0"
"node": ">=8.12.0"
},

@@ -50,2 +55,5 @@ "files": [

"build/esm/**/*.d.ts",
"build/esnext/**/*.js",
"build/esnext/**/*.js.map",
"build/esnext/**/*.d.ts",
"build/src/**/*.js",

@@ -62,13 +70,13 @@ "build/src/**/*.js.map",

"devDependencies": {
"@babel/core": "7.15.0",
"@opentelemetry/api": "^1.0.3",
"@babel/core": "7.16.0",
"@opentelemetry/api": "^1.0.0",
"@types/mocha": "8.2.3",
"@types/node": "14.17.11",
"@types/sinon": "10.0.2",
"@types/webpack-env": "1.16.2",
"babel-loader": "8.2.2",
"@types/node": "14.17.33",
"@types/sinon": "10.0.6",
"@types/webpack-env": "1.16.3",
"babel-loader": "8.2.3",
"codecov": "3.8.3",
"cpx": "1.5.0",
"istanbul-instrumenter-loader": "3.0.1",
"karma": "6.3.7",
"karma": "6.3.16",
"karma-chrome-launcher": "3.1.0",

@@ -85,5 +93,5 @@ "karma-coverage-istanbul-reporter": "3.0.3",

"ts-mocha": "8.0.0",
"typescript": "4.3.5",
"typescript": "4.4.4",
"webpack": "4.46.0",
"webpack-cli": "4.8.0",
"webpack-cli": "4.9.1",
"webpack-merge": "5.8.0"

@@ -95,7 +103,8 @@ },

"dependencies": {
"@opentelemetry/core": "1.0.1",
"@opentelemetry/resources": "1.0.1",
"@opentelemetry/sdk-trace-base": "1.0.1"
"@opentelemetry/core": "1.2.0",
"@opentelemetry/otlp-exporter-base": "0.28.0",
"@opentelemetry/resources": "1.2.0",
"@opentelemetry/sdk-trace-base": "1.2.0"
},
"gitHead": "f5e227f0cb829df1ca2dc220a3e0e8ae0e607405"
"gitHead": "a0a670a03fd35b0799bee8cc466f79e93b5b6dd2"
}
# OpenTelemetry Collector Exporter for web and node
[![NPM Published Version][npm-img]][npm-url]
[![dependencies][dependencies-image]][dependencies-url]
[![devDependencies][devDependencies-image]][devDependencies-url]
[![Apache License][license-image]][license-image]

@@ -32,3 +30,3 @@

const collectorOptions = {
url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:55681/v1/traces
url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:4318/v1/traces
headers: {}, // an optional object containing custom headers to be sent with each request

@@ -62,3 +60,3 @@ concurrencyLimit: 10, // an optional limit on pending requests

const collectorOptions = {
url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:55681/v1/traces
url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:4318/v1/traces
headers: {

@@ -132,6 +130,2 @@ foo: 'bar'

[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
[dependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js.svg?path=packages%2Fopentelemetry-exporter-trace-otlp-http
[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-exporter-trace-otlp-http
[devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js.svg?path=packages%2Fopentelemetry-exporter-trace-otlp-http&type=dev
[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-exporter-trace-otlp-http&type=dev
[npm-url]: https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http

@@ -144,2 +138,2 @@ [npm-url-grpc]: https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-grpc

[semconv-resource-service-name]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/README.md#service
[metrics-exporter-url]: https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-metrics-otlp-http
[metrics-exporter-url]: https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-http

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

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