@opentelemetry/otlp-exporter-base
Advanced tools
Comparing version 0.34.0 to 0.35.0
@@ -17,3 +17,3 @@ /* | ||
import { diag } from '@opentelemetry/api'; | ||
import { ExportResultCode, BindOnceFuture } from '@opentelemetry/core'; | ||
import { ExportResultCode, BindOnceFuture, } from '@opentelemetry/core'; | ||
import { configureExporterTimeout } from './util'; | ||
@@ -96,4 +96,3 @@ /** | ||
this.onShutdown(); | ||
return Promise.all(this._sendingPromises) | ||
.then(function () { | ||
return Promise.all(this._sendingPromises).then(function () { | ||
/** ignore resolved values */ | ||
@@ -100,0 +99,0 @@ }); |
@@ -79,4 +79,3 @@ /* | ||
} | ||
}) | ||
.then(onSuccess, onError); | ||
}).then(onSuccess, onError); | ||
this._sendingPromises.push(promise); | ||
@@ -83,0 +82,0 @@ var popPromise = function () { |
@@ -81,3 +81,3 @@ var __assign = (this && this.__assign) || function () { | ||
var defaultHeaders = { | ||
'Accept': 'application/json', | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json', | ||
@@ -84,0 +84,0 @@ }; |
@@ -64,4 +64,3 @@ /* | ||
sendWithHttp(_this, JSON.stringify(serviceRequest), 'application/json', resolve, reject); | ||
}) | ||
.then(onSuccess, onError); | ||
}).then(onSuccess, onError); | ||
this._sendingPromises.push(promise); | ||
@@ -68,0 +67,0 @@ var popPromise = function () { |
@@ -105,4 +105,6 @@ var __assign = (this && this.__assign) || function () { | ||
var dataStream = readableFromBuffer(data); | ||
dataStream.on('error', onError) | ||
.pipe(zlib.createGzip()).on('error', onError) | ||
dataStream | ||
.on('error', onError) | ||
.pipe(zlib.createGzip()) | ||
.on('error', onError) | ||
.pipe(req); | ||
@@ -144,6 +146,9 @@ break; | ||
else { | ||
var definedCompression = getEnv().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || getEnv().OTEL_EXPORTER_OTLP_COMPRESSION; | ||
return definedCompression === CompressionAlgorithm.GZIP ? CompressionAlgorithm.GZIP : CompressionAlgorithm.NONE; | ||
var definedCompression = getEnv().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || | ||
getEnv().OTEL_EXPORTER_OTLP_COMPRESSION; | ||
return definedCompression === CompressionAlgorithm.GZIP | ||
? CompressionAlgorithm.GZIP | ||
: CompressionAlgorithm.NONE; | ||
} | ||
} | ||
//# sourceMappingURL=util.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.34.0"; | ||
export declare const VERSION = "0.35.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.34.0'; | ||
export var VERSION = '0.35.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -17,3 +17,3 @@ /* | ||
import { diag } from '@opentelemetry/api'; | ||
import { ExportResultCode, BindOnceFuture } from '@opentelemetry/core'; | ||
import { ExportResultCode, BindOnceFuture, } from '@opentelemetry/core'; | ||
import { configureExporterTimeout } from './util'; | ||
@@ -94,4 +94,3 @@ /** | ||
this.onShutdown(); | ||
return Promise.all(this._sendingPromises) | ||
.then(() => { | ||
return Promise.all(this._sendingPromises).then(() => { | ||
/** ignore resolved values */ | ||
@@ -98,0 +97,0 @@ }); |
@@ -60,4 +60,3 @@ /* | ||
} | ||
}) | ||
.then(onSuccess, onError); | ||
}).then(onSuccess, onError); | ||
this._sendingPromises.push(promise); | ||
@@ -64,0 +63,0 @@ const popPromise = () => { |
@@ -54,3 +54,3 @@ /* | ||
const defaultHeaders = { | ||
'Accept': 'application/json', | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json', | ||
@@ -57,0 +57,0 @@ }; |
@@ -45,4 +45,3 @@ /* | ||
sendWithHttp(this, JSON.stringify(serviceRequest), 'application/json', resolve, reject); | ||
}) | ||
.then(onSuccess, onError); | ||
}).then(onSuccess, onError); | ||
this._sendingPromises.push(promise); | ||
@@ -49,0 +48,0 @@ const popPromise = () => { |
@@ -94,4 +94,6 @@ /* | ||
const dataStream = readableFromBuffer(data); | ||
dataStream.on('error', onError) | ||
.pipe(zlib.createGzip()).on('error', onError) | ||
dataStream | ||
.on('error', onError) | ||
.pipe(zlib.createGzip()) | ||
.on('error', onError) | ||
.pipe(req); | ||
@@ -133,6 +135,9 @@ break; | ||
else { | ||
const definedCompression = getEnv().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || getEnv().OTEL_EXPORTER_OTLP_COMPRESSION; | ||
return definedCompression === CompressionAlgorithm.GZIP ? CompressionAlgorithm.GZIP : CompressionAlgorithm.NONE; | ||
const definedCompression = getEnv().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || | ||
getEnv().OTEL_EXPORTER_OTLP_COMPRESSION; | ||
return definedCompression === CompressionAlgorithm.GZIP | ||
? CompressionAlgorithm.GZIP | ||
: CompressionAlgorithm.NONE; | ||
} | ||
} | ||
//# sourceMappingURL=util.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.34.0"; | ||
export declare const VERSION = "0.35.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '0.34.0'; | ||
export const VERSION = '0.35.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -96,4 +96,3 @@ "use strict"; | ||
this.onShutdown(); | ||
return Promise.all(this._sendingPromises) | ||
.then(() => { | ||
return Promise.all(this._sendingPromises).then(() => { | ||
/** ignore resolved values */ | ||
@@ -100,0 +99,0 @@ }); |
@@ -63,4 +63,3 @@ "use strict"; | ||
} | ||
}) | ||
.then(onSuccess, onError); | ||
}).then(onSuccess, onError); | ||
this._sendingPromises.push(promise); | ||
@@ -67,0 +66,0 @@ const popPromise = () => { |
@@ -58,3 +58,3 @@ "use strict"; | ||
const defaultHeaders = { | ||
'Accept': 'application/json', | ||
Accept: 'application/json', | ||
'Content-Type': 'application/json', | ||
@@ -61,0 +61,0 @@ }; |
@@ -48,4 +48,3 @@ "use strict"; | ||
(0, util_2.sendWithHttp)(this, JSON.stringify(serviceRequest), 'application/json', resolve, reject); | ||
}) | ||
.then(onSuccess, onError); | ||
}).then(onSuccess, onError); | ||
this._sendingPromises.push(promise); | ||
@@ -52,0 +51,0 @@ const popPromise = () => { |
@@ -97,4 +97,6 @@ "use strict"; | ||
const dataStream = readableFromBuffer(data); | ||
dataStream.on('error', onError) | ||
.pipe(zlib.createGzip()).on('error', onError) | ||
dataStream | ||
.on('error', onError) | ||
.pipe(zlib.createGzip()) | ||
.on('error', onError) | ||
.pipe(req); | ||
@@ -138,4 +140,7 @@ break; | ||
else { | ||
const definedCompression = (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_COMPRESSION; | ||
return definedCompression === types_1.CompressionAlgorithm.GZIP ? types_1.CompressionAlgorithm.GZIP : types_1.CompressionAlgorithm.NONE; | ||
const definedCompression = (0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || | ||
(0, core_1.getEnv)().OTEL_EXPORTER_OTLP_COMPRESSION; | ||
return definedCompression === types_1.CompressionAlgorithm.GZIP | ||
? types_1.CompressionAlgorithm.GZIP | ||
: types_1.CompressionAlgorithm.NONE; | ||
} | ||
@@ -142,0 +147,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.34.0"; | ||
export declare const VERSION = "0.35.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.34.0'; | ||
exports.VERSION = '0.35.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/otlp-exporter-base", | ||
"version": "0.34.0", | ||
"version": "0.35.0", | ||
"description": "OpenTelemetry OTLP Exporter base (for internal use only)", | ||
@@ -18,4 +18,4 @@ "main": "build/src/index.js", | ||
"prepublishOnly": "npm run compile", | ||
"compile": "tsc --build tsconfig.all.json", | ||
"clean": "tsc --build --clean tsconfig.all.json", | ||
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", | ||
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", | ||
@@ -30,3 +30,3 @@ "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", | ||
"version": "node ../../../scripts/version-update.js", | ||
"watch": "tsc --build --watch tsconfig.all.json", | ||
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", | ||
"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies", | ||
@@ -66,3 +66,3 @@ "prewatch": "npm run precompile" | ||
"dependencies": { | ||
"@opentelemetry/core": "1.8.0" | ||
"@opentelemetry/core": "1.9.0" | ||
}, | ||
@@ -79,3 +79,3 @@ "devDependencies": { | ||
"nyc": "15.1.0", | ||
"sinon": "14.0.0", | ||
"sinon": "15.0.0", | ||
"ts-loader": "8.4.0", | ||
@@ -90,3 +90,3 @@ "ts-mocha": "10.0.0", | ||
"sideEffects": false, | ||
"gitHead": "7972edf6659fb6e0d5928a5cf7a35f26683e168f" | ||
"gitHead": "08f597f3a3d71a4852b0afbba120af15ca038121" | ||
} |
@@ -6,2 +6,4 @@ # OpenTelemetry Collector Exporter for web and node | ||
**Note: This package is intended for internal use only.** | ||
**Note: This is an experimental package under active development. New releases may include breaking changes.** | ||
@@ -8,0 +10,0 @@ |
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
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
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
248229
2763
44
+ Added@opentelemetry/api@1.4.1(transitive)
+ Added@opentelemetry/core@1.9.0(transitive)
+ Added@opentelemetry/semantic-conventions@1.9.0(transitive)
- Removed@opentelemetry/api@1.3.0(transitive)
- Removed@opentelemetry/core@1.8.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.8.0(transitive)
Updated@opentelemetry/core@1.9.0