jaeger-client-debug
Advanced tools
Comparing version 3.16.9 to 3.16.10
@@ -251,2 +251,3 @@ 'use strict'; | ||
get: function get() { | ||
console.log('checking the sample context samplingFinalized : ' + this._samplingState.isFinal()); | ||
return this._samplingState.isFinal(); | ||
@@ -253,0 +254,0 @@ } |
@@ -178,3 +178,5 @@ 'use strict'; | ||
if (!span._spanContext.samplingFinalized) { | ||
this._logger.info('getting the sampler oncreate span'); | ||
var decision = this._sampler.onCreateSpan(span); | ||
this._logger.info('applying the decision: ' + JSON.stringify(decision)); | ||
span._applySamplingDecision(decision); | ||
@@ -284,2 +286,3 @@ } | ||
if (!parent || !parent.isValid) { | ||
this._logger.info('no span context'); | ||
var randomId = _util2.default.getRandom64(); | ||
@@ -299,5 +302,7 @@ ctx = new _span_context2.default(randomId, randomId); | ||
hasValidParent = true; | ||
this._logger.info('has span context'); | ||
var spanId = _util2.default.getRandom64(); | ||
ctx = parent._makeChildContext(spanId); | ||
if (parent.isRemote()) { | ||
this._logger.info('parent is remote, finalizing'); | ||
ctx.finalizeSampling(); // will finalize sampling for all spans sharing this traceId | ||
@@ -304,0 +309,0 @@ } |
@@ -13,2 +13,2 @@ // Copyright (c) 2019 Uber Technologies, Inc. | ||
module.exports = '3.16.8'; | ||
module.exports = '3.16.9'; |
{ | ||
"name": "jaeger-client-debug", | ||
"version": "3.16.9", | ||
"version": "3.16.10", | ||
"description": "Jaeger binding for OpenTracing Node", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
591339
5419