zipkin-instrumentation-fetch
Advanced tools
Comparing version 0.14.3 to 0.15.0
@@ -1,3 +0,3 @@ | ||
'use strict'; | ||
"use strict"; | ||
module.exports = require('./wrapFetch'); |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -10,7 +10,9 @@ var _require = require('zipkin'), | ||
remoteServiceName = _ref.remoteServiceName; | ||
var instrumentation = new Instrumentation.HttpClient({ tracer: tracer, serviceName: serviceName, remoteServiceName: remoteServiceName }); | ||
var instrumentation = new Instrumentation.HttpClient({ | ||
tracer: tracer, | ||
serviceName: serviceName, | ||
remoteServiceName: remoteServiceName | ||
}); | ||
return function zipkinfetch(url) { | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return new Promise(function (resolve, reject) { | ||
@@ -21,3 +23,2 @@ tracer.scoped(function () { | ||
var traceId = tracer.id; | ||
fetch(url, zipkinOpts).then(function (res) { | ||
@@ -24,0 +25,0 @@ tracer.scoped(function () { |
{ | ||
"name": "zipkin-instrumentation-fetch", | ||
"version": "0.14.3", | ||
"version": "0.15.0", | ||
"description": "Interceptor for HTTP clients using the 'fetch' API", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"build": "babel src -d lib", | ||
"test": "mocha --require ../../test/helper.js", | ||
"test": "mocha --exit --require ../../test/helper.js", | ||
"prepublish": "npm run build" | ||
@@ -16,8 +16,10 @@ }, | ||
"devDependencies": { | ||
"babel-cli": "^6.23.0", | ||
"@babel/cli": "7.1.5", | ||
"@babel/core": "7.1.5", | ||
"express": "^4.13.4", | ||
"mocha": "^3.2.0", | ||
"mocha": "^5.2.0", | ||
"node-fetch": "^1.5.3", | ||
"zipkin": "^0.14.3" | ||
} | ||
"zipkin": "^0.15.0" | ||
}, | ||
"gitHead": "efd22b807a6d6056a319d9468231480e7a58a402" | ||
} |
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
9585
9
189
6