Comparing version 0.19.2-alpha.6 to 0.19.2
@@ -5,2 +5,4 @@ import os from 'os'; | ||
function _typeof(obj) { | ||
"@babel/helpers - typeof"; | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
@@ -7,0 +9,0 @@ _typeof = function (obj) { |
@@ -11,2 +11,4 @@ 'use strict'; | ||
function _typeof(obj) { | ||
"@babel/helpers - typeof"; | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
@@ -13,0 +15,0 @@ _typeof = function (obj) { |
{ | ||
"name": "zipkin", | ||
"version": "0.19.2-alpha.6+03adb24", | ||
"version": "0.19.2", | ||
"description": "The core tracer for Zipkin JS", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "03adb2453f4045d9353e589a20332d479b29b1ff" | ||
"gitHead": "6abcd0406caa8941008c170b2776027b980e5c24" | ||
} |
@@ -10,11 +10,11 @@ "use strict"; | ||
it('should return correct type', function () { | ||
var clientSend = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ClientSend.1398652972")).assert(new zipkin_1.Annotation.ClientSend()); | ||
var clientRecv = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ClientRecv.1398652972")).assert(new zipkin_1.Annotation.ClientRecv()); | ||
var serverSend = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServerSend.1398652972")).assert(new zipkin_1.Annotation.ServerSend()); | ||
var serverRecv = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServerRecv.1398652972")).assert(new zipkin_1.Annotation.ServerRecv()); | ||
var ProducerStart = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ProducerStart.1398652972")).assert(new zipkin_1.Annotation.ProducerStart()); | ||
var ProducerStop = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ProducerStop.1398652972")).assert(new zipkin_1.Annotation.ProducerStop()); | ||
var ConsumerStart = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ConsumerStart.1398652972")).assert(new zipkin_1.Annotation.ConsumerStart()); | ||
var ConsumerStop = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ConsumerStop.1398652972")).assert(new zipkin_1.Annotation.ConsumerStop()); | ||
var localOperationStop = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.LocalOperationStop.1398652972")).assert(new zipkin_1.Annotation.LocalOperationStop()); | ||
var clientSend = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ClientSend.4129746395")).assert(new zipkin_1.Annotation.ClientSend()); | ||
var clientRecv = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ClientRecv.4129746395")).assert(new zipkin_1.Annotation.ClientRecv()); | ||
var serverSend = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServerSend.4129746395")).assert(new zipkin_1.Annotation.ServerSend()); | ||
var serverRecv = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServerRecv.4129746395")).assert(new zipkin_1.Annotation.ServerRecv()); | ||
var ProducerStart = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ProducerStart.4129746395")).assert(new zipkin_1.Annotation.ProducerStart()); | ||
var ProducerStop = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ProducerStop.4129746395")).assert(new zipkin_1.Annotation.ProducerStop()); | ||
var ConsumerStart = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ConsumerStart.4129746395")).assert(new zipkin_1.Annotation.ConsumerStart()); | ||
var ConsumerStop = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ConsumerStop.4129746395")).assert(new zipkin_1.Annotation.ConsumerStop()); | ||
var localOperationStop = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.LocalOperationStop.4129746395")).assert(new zipkin_1.Annotation.LocalOperationStop()); | ||
chai_1.expect(clientSend).to.have.property('annotationType'); | ||
@@ -33,6 +33,6 @@ chai_1.expect(clientRecv).to.have.property('annotationType'); | ||
it('should return correct type', function () { | ||
var localOperationStart = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.LocalOperationStart.1398652972")).assert(new zipkin_1.Annotation.LocalOperationStart('name')); | ||
var message = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.Message.1398652972")).assert(new zipkin_1.Annotation.Message('name')); | ||
var serviceName = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServiceName.1398652972")).assert(new zipkin_1.Annotation.ServiceName('name')); | ||
var rpc = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.Rpc.1398652972")).assert(new zipkin_1.Annotation.Rpc('name')); | ||
var localOperationStart = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.LocalOperationStart.4129746395")).assert(new zipkin_1.Annotation.LocalOperationStart('name')); | ||
var message = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.Message.4129746395")).assert(new zipkin_1.Annotation.Message('name')); | ||
var serviceName = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServiceName.4129746395")).assert(new zipkin_1.Annotation.ServiceName('name')); | ||
var rpc = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.Rpc.4129746395")).assert(new zipkin_1.Annotation.Rpc('name')); | ||
chai_1.expect(localOperationStart).to.have.property('name'); | ||
@@ -46,7 +46,7 @@ chai_1.expect(message).to.have.property('message'); | ||
it('should return correct type', function () { | ||
var clientAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ClientAddr.1398652972")).assert(new zipkin_1.Annotation.ClientAddr({ | ||
var clientAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ClientAddr.4129746395")).assert(new zipkin_1.Annotation.ClientAddr({ | ||
host: zipkin_1.InetAddress.getLocalAddress(), | ||
port: 8000 | ||
})); | ||
var serverAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServerAddr.1398652972")).assert(new zipkin_1.Annotation.ServerAddr({ | ||
var serverAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.ServerAddr.4129746395")).assert(new zipkin_1.Annotation.ServerAddr({ | ||
serviceName: 'name', | ||
@@ -56,3 +56,3 @@ host: zipkin_1.InetAddress.getLocalAddress(), | ||
})); | ||
var MessageAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.MessageAddr.1398652972")).assert(new zipkin_1.Annotation.MessageAddr({ | ||
var MessageAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.MessageAddr.4129746395")).assert(new zipkin_1.Annotation.MessageAddr({ | ||
serviceName: 'name', | ||
@@ -62,3 +62,3 @@ host: zipkin_1.InetAddress.getLocalAddress(), | ||
})); | ||
var localAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.LocalAddr.1398652972")).assert(new zipkin_1.Annotation.LocalAddr({ | ||
var localAddr = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.LocalAddr.4129746395")).assert(new zipkin_1.Annotation.LocalAddr({ | ||
host: zipkin_1.InetAddress.getLocalAddress(), | ||
@@ -75,3 +75,3 @@ port: 8000 | ||
it('should return correct type', function () { | ||
var binaryAnnotation = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.BinaryAnnotation.1398652972")).assert(new zipkin_1.Annotation.BinaryAnnotation('binary-annotation', 'some-value')); | ||
var binaryAnnotation = lib_1.default.nullable(lib_1.default.ref("zipkin.Annotation.BinaryAnnotation.4129746395")).assert(new zipkin_1.Annotation.BinaryAnnotation('binary-annotation', 'some-value')); | ||
chai_1.expect(binaryAnnotation.value).to.equal('some-value'); | ||
@@ -78,0 +78,0 @@ }); |
@@ -9,5 +9,5 @@ "use strict"; | ||
it('should return correct type', function () { | ||
var explicitContext = lib_1.default.nullable(lib_1.default.ref("zipkin.ExplicitContext.1398652972")).assert(new zipkin_1.ExplicitContext()); | ||
var explicitContext = lib_1.default.nullable(lib_1.default.ref("zipkin.ExplicitContext.4129746395")).assert(new zipkin_1.ExplicitContext()); | ||
chai_1.expect(explicitContext.scoped).to.be.a('function'); | ||
}); | ||
}); |
@@ -9,5 +9,5 @@ "use strict"; | ||
it('should have correct type', function () { | ||
var addr = lib_1.default.nullable(lib_1.default.ref("zipkin.InetAddress.1398652972")).assert(new zipkin_1.InetAddress('80.91.37.133')); | ||
var addr = lib_1.default.nullable(lib_1.default.ref("zipkin.InetAddress.4129746395")).assert(new zipkin_1.InetAddress('80.91.37.133')); | ||
chai_1.expect(addr.ipv4).to.be.a('function'); | ||
}); | ||
}); |
@@ -10,3 +10,3 @@ "use strict"; | ||
it('should have correct type', function () { | ||
var instrumentation = lib_1.default.nullable(lib_1.default.ref("zipkin.Instrumentation.HttpClient.1398652972")).assert(new zipkin_1.Instrumentation.HttpClient({ | ||
var instrumentation = lib_1.default.nullable(lib_1.default.ref("zipkin.Instrumentation.HttpClient.4129746395")).assert(new zipkin_1.Instrumentation.HttpClient({ | ||
tracer: new zipkin_1.Tracer({ | ||
@@ -24,3 +24,3 @@ ctxImpl: new zipkin_1.ExplicitContext(), | ||
it('should have correct type', function () { | ||
var instrumentation = lib_1.default.nullable(lib_1.default.ref("zipkin.Instrumentation.HttpServer.1398652972")).assert(new zipkin_1.Instrumentation.HttpServer({ | ||
var instrumentation = lib_1.default.nullable(lib_1.default.ref("zipkin.Instrumentation.HttpServer.4129746395")).assert(new zipkin_1.Instrumentation.HttpServer({ | ||
tracer: new zipkin_1.Tracer({ | ||
@@ -27,0 +27,0 @@ ctxImpl: new zipkin_1.ExplicitContext(), |
@@ -9,5 +9,5 @@ "use strict"; | ||
it('should have correct type', function () { | ||
var v1 = lib_1.default.nullable(lib_1.default.ref("zipkin.JsonEncoder.1398652972")).assert(zipkin_1.jsonEncoder.JSON_V1); | ||
var v2 = lib_1.default.nullable(lib_1.default.ref("zipkin.JsonEncoder.1398652972")).assert(zipkin_1.jsonEncoder.JSON_V2); | ||
var span = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Span.1398652972")).assert(new zipkin_1.model.Span(new zipkin_1.TraceId({ spanId: 'xyz' }))); | ||
var v1 = lib_1.default.nullable(lib_1.default.ref("zipkin.JsonEncoder.4129746395")).assert(zipkin_1.jsonEncoder.JSON_V1); | ||
var v2 = lib_1.default.nullable(lib_1.default.ref("zipkin.JsonEncoder.4129746395")).assert(zipkin_1.jsonEncoder.JSON_V2); | ||
var span = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Span.4129746395")).assert(new zipkin_1.model.Span(new zipkin_1.TraceId({ spanId: 'xyz' }))); | ||
chai_1.expect(v1.encode(span)).to.be.a('string'); | ||
@@ -14,0 +14,0 @@ chai_1.expect(v2.encode(span)).to.be.a('string'); |
@@ -10,3 +10,3 @@ "use strict"; | ||
it('should have correct type', function () { | ||
var endpoint = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Endpoint.1398652972")).assert(new zipkin_1.model.Endpoint({ | ||
var endpoint = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Endpoint.4129746395")).assert(new zipkin_1.model.Endpoint({ | ||
serviceName: 'Unknown', | ||
@@ -21,3 +21,3 @@ ipv4: '10.0.0.1', | ||
it('should have correct type', function () { | ||
var span = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Span.1398652972")).assert(new zipkin_1.model.Span(new zipkin_1.TraceId({ | ||
var span = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Span.4129746395")).assert(new zipkin_1.model.Span(new zipkin_1.TraceId({ | ||
traceId: 'a', | ||
@@ -24,0 +24,0 @@ spanId: 'b' |
@@ -13,3 +13,3 @@ "use strict"; | ||
// Both type and present will be checked by ts-runtime | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.INone.1398652972", lib_1.default.void())).assert(None); | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.INone.4129746395", lib_1.default.void())).assert(None); | ||
// Avoid unused value warning | ||
@@ -19,3 +19,3 @@ chai_1.expect(value.type).to.equal('None'); | ||
it('getOrElse should return value type', function () { | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(None); | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(None); | ||
chai_1.expect(value.getOrElse(0)).to.equal(0); | ||
@@ -27,3 +27,3 @@ chai_1.expect(value.getOrElse(function () { | ||
it('ifPresent should return void', function () { | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(None); | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(None); | ||
var x = lib_1.default.void().assert(value.ifPresent(function (v) { | ||
@@ -35,3 +35,3 @@ return v; | ||
it('map should have correct return types', function () { | ||
var mappedValue = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.any())).assert(None.map(function (v) { | ||
var mappedValue = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.any())).assert(None.map(function (v) { | ||
return v; | ||
@@ -42,6 +42,6 @@ })); | ||
it('flatMap should have correct return types', function () { | ||
var mappedValue1 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.any())).assert(None.flatMap(function (v) { | ||
var mappedValue1 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.any())).assert(None.flatMap(function (v) { | ||
return new Some(v); | ||
})); | ||
var mappedValue2 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.any())).assert(None.flatMap(function (_) { | ||
var mappedValue2 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.any())).assert(None.flatMap(function (_) { | ||
return None; | ||
@@ -56,3 +56,3 @@ })); | ||
// Both type and present will be checked by ts-runtime | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(new Some(0)); | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(new Some(0)); | ||
// Avoid unused value warning | ||
@@ -62,3 +62,3 @@ chai_1.expect(value.type).to.equal('Some'); | ||
it('getOrElse should return value type', function () { | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(new Some(0)); | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(new Some(0)); | ||
chai_1.expect(value.getOrElse(1)).to.equal(0); | ||
@@ -70,3 +70,3 @@ chai_1.expect(value.getOrElse(function () { | ||
it('ifPresent should return void', function () { | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(new Some(0)); | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(new Some(0)); | ||
var x = lib_1.default.void().assert(value.ifPresent(function (v) { | ||
@@ -78,4 +78,4 @@ return v; | ||
it('map should have correct return types', function () { | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.string()))).assert(new Some('some value')); | ||
var mappedValue = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(value.map(function (v) { | ||
var value = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.string()))).assert(new Some('some value')); | ||
var mappedValue = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(value.map(function (v) { | ||
return v.length; | ||
@@ -88,6 +88,6 @@ })); | ||
var value = new Some('some value'); | ||
var mappedValue1 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(value.flatMap(function (v) { | ||
var mappedValue1 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(value.flatMap(function (v) { | ||
return new Some(v.length); | ||
})); | ||
var mappedValue2 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.number()))).assert(value.flatMap(function (_) { | ||
var mappedValue2 = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.number()))).assert(value.flatMap(function (_) { | ||
return None; | ||
@@ -94,0 +94,0 @@ })); |
@@ -12,6 +12,6 @@ "use strict"; | ||
function Log() { | ||
lib_1.default.ref("zipkin.Logger.1398652972").assert(this); | ||
lib_1.default.ref("zipkin.Logger.4129746395").assert(this); | ||
} | ||
Log.prototype.logSpan = function (span) { | ||
var _spanType = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Span.1398652972")); | ||
var _spanType = lib_1.default.nullable(lib_1.default.ref("zipkin.model.Span.4129746395")); | ||
var _returnType = lib_1.default.return(lib_1.default.void()); | ||
@@ -22,3 +22,3 @@ lib_1.default.param("span", _spanType).assert(span); | ||
}()); | ||
var batchRecorder = lib_1.default.nullable(lib_1.default.ref("zipkin.BatchRecorder.1398652972")).assert(new zipkin_1.BatchRecorder({ | ||
var batchRecorder = lib_1.default.nullable(lib_1.default.ref("zipkin.BatchRecorder.4129746395")).assert(new zipkin_1.BatchRecorder({ | ||
logger: new Log(), | ||
@@ -32,3 +32,3 @@ timeout: 1000 | ||
it('should ConsoleRecorder return correct type', function () { | ||
var consoleRecorder = lib_1.default.nullable(lib_1.default.ref("zipkin.ConsoleRecorder.1398652972")).assert(new zipkin_1.ConsoleRecorder()); | ||
var consoleRecorder = lib_1.default.nullable(lib_1.default.ref("zipkin.ConsoleRecorder.4129746395")).assert(new zipkin_1.ConsoleRecorder()); | ||
chai_1.expect(consoleRecorder.record).to.be.a('function'); | ||
@@ -35,0 +35,0 @@ }); |
@@ -14,3 +14,3 @@ "use strict"; | ||
}); | ||
var requestWithHeaders = lib_1.default.nullable(lib_1.default.ref("zipkin.RequestZipkinHeaders.1398652972")).assert(zipkin_1.Request.addZipkinHeaders({}, traceId)); | ||
var requestWithHeaders = lib_1.default.nullable(lib_1.default.ref("zipkin.RequestZipkinHeaders.4129746395")).assert(zipkin_1.Request.addZipkinHeaders({}, traceId)); | ||
chai_1.expect(requestWithHeaders).to.have.property('headers'); | ||
@@ -23,3 +23,3 @@ }); | ||
}); | ||
var requestWithCookie = lib_1.default.nullable(lib_1.default.ref("zipkin.RequestZipkinHeaders.1398652972", lib_1.default.object(lib_1.default.property("url", lib_1.default.nullable(lib_1.default.string()))), lib_1.default.object(lib_1.default.property("cookie", lib_1.default.nullable(lib_1.default.string()))))).assert(zipkin_1.Request.addZipkinHeaders({ url: 'google.com', headers: { cookie: 'abc' } }, traceId)); | ||
var requestWithCookie = lib_1.default.nullable(lib_1.default.ref("zipkin.RequestZipkinHeaders.4129746395", lib_1.default.object(lib_1.default.property("url", lib_1.default.nullable(lib_1.default.string()))), lib_1.default.object(lib_1.default.property("cookie", lib_1.default.nullable(lib_1.default.string()))))).assert(zipkin_1.Request.addZipkinHeaders({ url: 'google.com', headers: { cookie: 'abc' } }, traceId)); | ||
chai_1.expect(requestWithCookie.headers.cookie).to.equal('abc'); | ||
@@ -26,0 +26,0 @@ chai_1.expect(requestWithCookie.url).to.equal('google.com'); |
@@ -9,3 +9,3 @@ "use strict"; | ||
it('should have correct type', function () { | ||
var sample = lib_1.default.nullable(lib_1.default.ref("zipkin.sampler.Sampler.1398652972")).assert(new zipkin_1.sampler.Sampler(function () { | ||
var sample = lib_1.default.nullable(lib_1.default.ref("zipkin.sampler.Sampler.4129746395")).assert(new zipkin_1.sampler.Sampler(function () { | ||
return false; | ||
@@ -18,5 +18,5 @@ })); | ||
it('should have correct type', function () { | ||
var sample = lib_1.default.nullable(lib_1.default.ref("zipkin.sampler.CountingSampler.1398652972")).assert(new zipkin_1.sampler.CountingSampler(0.42)); | ||
var sample = lib_1.default.nullable(lib_1.default.ref("zipkin.sampler.CountingSampler.4129746395")).assert(new zipkin_1.sampler.CountingSampler(0.42)); | ||
chai_1.expect(sample.shouldSample).to.be.a('function'); | ||
}); | ||
}); |
@@ -13,5 +13,5 @@ "use strict"; | ||
var ctxImpl = new zipkin_1.ExplicitContext(); | ||
var tracer = lib_1.default.nullable(lib_1.default.ref("zipkin.Tracer.1398652972")).assert(new zipkin_1.Tracer({ ctxImpl: ctxImpl, recorder: recorder })); | ||
var tracer = lib_1.default.nullable(lib_1.default.ref("zipkin.Tracer.4129746395")).assert(new zipkin_1.Tracer({ ctxImpl: ctxImpl, recorder: recorder })); | ||
chai_1.expect(tracer.recordRpc).to.be.a('function'); | ||
}); | ||
}); |
@@ -9,3 +9,3 @@ "use strict"; | ||
it('should have correct type', function () { | ||
var traceId = lib_1.default.nullable(lib_1.default.ref("zipkin.TraceId.1398652972")).assert(new zipkin_1.TraceId({ | ||
var traceId = lib_1.default.nullable(lib_1.default.ref("zipkin.TraceId.4129746395")).assert(new zipkin_1.TraceId({ | ||
traceId: '1', | ||
@@ -16,8 +16,8 @@ parentId: new zipkin_1.option.Some('1'), | ||
chai_1.expect(traceId.isShared()).to.equal(false); | ||
var sampled = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.boolean()))).assert(traceId.sampled); | ||
var sampled = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.boolean()))).assert(traceId.sampled); | ||
chai_1.expect(sampled.map).to.be.a('function'); | ||
chai_1.expect(sampled).to.equal(zipkin_1.option.None); | ||
var parentId = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.1398652972", lib_1.default.nullable(lib_1.default.string()))).assert(traceId.parentSpanId); | ||
var parentId = lib_1.default.nullable(lib_1.default.ref("zipkin.option.IOption.4129746395", lib_1.default.nullable(lib_1.default.string()))).assert(traceId.parentSpanId); | ||
chai_1.expect(parentId.map).to.be.a('function'); | ||
}); | ||
}); |
Sorry, the diff of this file is too big to display
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
508030
12771
0