zipkin-instrumentation-cujojs-rest
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "zipkin-instrumentation-cujojs-rest", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Interceptor for instrumenting HTTP calls from the cujoJS rest library", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: Tests should be run from the root directory" | ||
"test": "node ../../node_modules/mocha/bin/mocha --require ../../test/helper.js" | ||
}, | ||
@@ -17,5 +17,4 @@ "author": "Openzipkin <openzipkin.alt@gmail.com>", | ||
"peerDependencies": { | ||
"zipkin-core": "^0.1.6" | ||
"zipkin-core": "^0.1.7" | ||
} | ||
} | ||
@@ -41,3 +41,3 @@ /* eslint-disable no-param-reassign */ | ||
traceId.sampled.ifPresent(sampled => { | ||
req.headers[Header.Sampled] = sampled ? 'true' : 'false'; | ||
req.headers[Header.Sampled] = sampled ? '1' : '0'; | ||
}); | ||
@@ -67,5 +67,4 @@ | ||
module.exports = interceptor({ | ||
request, | ||
response | ||
}); |
5182