New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/exporter-jaeger

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/exporter-jaeger - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1-alpha.15

5

build/src/jaeger.d.ts

@@ -12,2 +12,5 @@ import { ExportResult } from '@opentelemetry/core';

private readonly _onShutdownFlushTimeout;
private _isShutdown;
private _shutdownFlushTimeout;
private _shuttingDownPromise;
constructor(config: jaegerTypes.ExporterConfig);

@@ -17,3 +20,3 @@ /** Exports a list of spans to Jaeger. */

/** Shutdown exporter. */
shutdown(): void;
shutdown(): Promise<void>;
/** Transform spans and sends to Jaeger service. */

@@ -20,0 +23,0 @@ private _sendSpans;

41

build/src/jaeger.js

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

constructor(config) {
this._isShutdown = false;
this._shuttingDownPromise = Promise.resolve();
const localConfig = Object.assign({}, config);

@@ -75,9 +77,34 @@ this._logger = localConfig.logger || new core_1.NoopLogger();

shutdown() {
// Make an optimistic flush.
this._flush();
// Sleeping x seconds before closing the sender's connection to ensure
// all spans are flushed.
setTimeout(() => {
this._sender.close();
}, this._onShutdownFlushTimeout);
if (this._isShutdown) {
return this._shuttingDownPromise;
}
this._isShutdown = true;
this._shuttingDownPromise = new Promise((resolve, reject) => {
let rejected = false;
this._shutdownFlushTimeout = setTimeout(() => {
rejected = true;
reject('timeout');
this._sender.close();
}, this._onShutdownFlushTimeout);
Promise.resolve()
.then(() => {
// Make an optimistic flush.
return this._flush();
})
.then(() => {
if (rejected) {
return;
}
else {
this._shutdownFlushTimeout &&
clearTimeout(this._shutdownFlushTimeout);
resolve();
this._sender.close();
}
})
.catch(e => {
reject(e);
});
});
return this._shuttingDownPromise;
}

@@ -84,0 +111,0 @@ /** Transform spans and sends to Jaeger service. */

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

export declare const VERSION = "0.11.0";
export declare const VERSION = "0.11.1-alpha.15+e170039";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.11.0';
exports.VERSION = '0.11.1-alpha.15+e170039';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/exporter-jaeger",
"version": "0.11.0",
"version": "0.11.1-alpha.15+e170039",
"description": "OpenTelemetry Exporter Jaeger allows user to send collected traces to Jaeger",

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

"devDependencies": {
"@opentelemetry/resources": "^0.11.0",
"@opentelemetry/resources": "^0.11.1-alpha.15+e170039",
"@types/mocha": "8.0.2",

@@ -60,8 +60,8 @@ "@types/node": "14.0.27",

"dependencies": {
"@opentelemetry/api": "^0.11.0",
"@opentelemetry/core": "^0.11.0",
"@opentelemetry/tracing": "^0.11.0",
"@opentelemetry/api": "^0.11.1-alpha.15+e170039",
"@opentelemetry/core": "^0.11.1-alpha.15+e170039",
"@opentelemetry/tracing": "^0.11.1-alpha.15+e170039",
"jaeger-client": "^3.15.0"
},
"gitHead": "15174c6647ab9863dfc1424412fa60f2fddb3351"
"gitHead": "e170039015e8a1a7419bb835a00659b2a734b8a6"
}

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