Socket
Socket
Sign inDemoInstall

jaeger-client

Package Overview
Dependencies
14
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.16.0 to 3.17.0

6

CHANGELOG.md
# Changes by Version
## 3.17.0 (2019-09-23)
* Add option to support zipkin's shared span id between client and server spans (#399) -- Jonathan Monette
* Allow specifying 128bit trace IDs via Configuration (#397) -- Aleksei Androsov
* Add support for UDP over IPv6 (#396) -- Aleksei Androsov
## 3.16.0 (2019-09-09)

@@ -4,0 +10,0 @@

@@ -136,2 +136,7 @@ 'use strict';

value = ConfigurationEnv._getConfigValue(config.reporter, 'agentSocketType', process.env.JAEGER_AGENT_SOCKET_TYPE);
if (value) {
reporterConfig.agentSocketType = value;
}
return reporterConfig;

@@ -138,0 +143,0 @@ }

@@ -108,2 +108,3 @@ 'use strict';

agentPort: { type: 'number' },
agentSocketType: { type: 'string' },
collectorEndpoint: { type: 'string' },

@@ -210,2 +211,6 @@ username: { type: 'string' },

}
if (config.reporter.agentSocketType) {
senderConfig['socketType'] = config.reporter.agentSocketType;
}
}

@@ -260,2 +265,4 @@ reporterConfig['metrics'] = options.metrics;

* as process-level tags on the Tracer itself.
* @param {boolean} [options.traceId128bit] - generate root span with a 128bit traceId.
* @param {boolean} [options.shareRpcSpan] - Share the same span for rpc span_kind.
*/

@@ -308,2 +315,4 @@

tags: options.tags,
traceId128bit: options.traceId128bit,
shareRpcSpan: options.shareRpcSpan,
debugThrottler: throttler

@@ -310,0 +319,0 @@ });

4

dist/src/reporters/udp_sender.js

@@ -52,2 +52,3 @@ 'use strict';

var PORT = 6832;
var SOCKET_TYPE = 'udp4';
var UDP_PACKET_MAX_LENGTH = 65000;

@@ -67,5 +68,6 @@

this._port = options.port || PORT;
this._socketType = options.socketType || SOCKET_TYPE;
this._maxPacketSize = options.maxPacketSize || UDP_PACKET_MAX_LENGTH;
this._logger = options.logger || new _logger2.default();
this._client = _dgram2.default.createSocket('udp4');
this._client = _dgram2.default.createSocket(this._socketType);
this._client.on('error', function (err) {

@@ -72,0 +74,0 @@ _this._logger.error('error sending spans over UDP: ' + err);

@@ -115,2 +115,3 @@ 'use strict';

* @param {boolean} [options.traceId128bit] - generate root span with a 128bit traceId.
* @param {boolean} [options.shareRpcSpan] - share spanIds for rpc servers.
* BaggageRestrictionManager API from ./baggage.js.

@@ -175,2 +176,3 @@ */

this._traceId128bit = options.traceId128bit;
this._shareRpcSpan = options.shareRpcSpan;
}

@@ -287,2 +289,3 @@

var hasValidParent = false;
var isRpcServer = Boolean(userTags && userTags[_opentracing.Tags.SPAN_KIND] === _opentracing.Tags.SPAN_KIND_RPC_SERVER);
if (!parent || !parent.isValid) {

@@ -308,4 +311,7 @@ if (this._traceId128bit) {

hasValidParent = true;
var spanId = _util2.default.getRandom64();
var spanId = this._shareRpcSpan && isRpcServer ? parent.spanId : _util2.default.getRandom64();
ctx = parent._makeChildContext(spanId);
if (this._shareRpcSpan && isRpcServer) {
ctx.parentId = parent.parentId;
}
if (parent.isRemote()) {

@@ -316,3 +322,2 @@ ctx.finalizeSampling(); // will finalize sampling for all spans sharing this traceId

var isRpcServer = Boolean(userTags && userTags[_opentracing.Tags.SPAN_KIND] === _opentracing.Tags.SPAN_KIND_RPC_SERVER);
return this._startInternalSpan(ctx, operationName, startTime, userTags, internalTags, references, hasValidParent, isRpcServer);

@@ -319,0 +324,0 @@ }

@@ -13,2 +13,2 @@ // Copyright (c) 2019 Uber Technologies, Inc.

module.exports = '3.16.0';
module.exports = '3.17.0';
{
"name": "jaeger-client",
"version": "3.16.0",
"version": "3.17.0",
"description": "Jaeger binding for OpenTracing Node",

@@ -21,3 +21,4 @@ "engines": {

"Yuri Shkuro <ys@uber.com>",
"Won Jun Jang <wjang@uber.com>"
"Won Jun Jang <wjang@uber.com>",
"Jaeger Authors <jaeger-tracing@googlegroups.com>"
],

@@ -24,0 +25,0 @@ "dependencies": {

@@ -60,2 +60,3 @@ [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![NPM Published Version][npm-img]][npm] [![OpenTracing 1.0 Enabled][ot-img]][ot-url]

| JAEGER_AGENT_PORT | The port for communicating with agent via UDP |
| JAEGER_AGENT_SOCKET_TYPE | The family of socket. Must be either 'udp4' or 'udp6' ('udp4' by default). |
| JAEGER_ENDPOINT | The HTTP endpoint for sending spans directly to a collector, i.e. http://jaeger-collector:14268/api/traces |

@@ -62,0 +63,0 @@ | JAEGER_USER | Username to send as part of "Basic" authentication to the collector endpoint |

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc