zipkin-instrumentation-fetch
Advanced tools
Comparing version 0.1.7 to 0.1.9
{ | ||
"name": "zipkin-instrumentation-fetch", | ||
"version": "0.1.7", | ||
"version": "0.1.9", | ||
"description": "Interceptor for HTTP clients using the 'fetch' API", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"zipkin-core": "^0.1.7" | ||
"zipkin": "^0.1.9" | ||
}, | ||
@@ -19,4 +19,4 @@ "devDependencies": { | ||
"node-fetch": "^1.5.1", | ||
"zipkin-core": "^0.1.7" | ||
"zipkin": "^0.1.9" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
const {trace, HttpHeaders, Annotation} = require('zipkin-core'); | ||
const {trace, HttpHeaders, Annotation} = require('zipkin'); | ||
@@ -45,4 +45,4 @@ function wrapFetch(fetch, {serviceName}) { | ||
trace.recordAnnotation(new Annotation.ClientRecv()); | ||
resolve(res); | ||
}); | ||
resolve(res); | ||
}).catch(err => { | ||
@@ -53,4 +53,4 @@ trace.withContext(() => { | ||
trace.recordAnnotation(new Annotation.ClientRecv()); | ||
reject(err); | ||
}); | ||
reject(err); | ||
}); | ||
@@ -57,0 +57,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
const {trace} = require('zipkin-core'); | ||
const {trace} = require('zipkin'); | ||
const express = require('express'); | ||
@@ -3,0 +3,0 @@ const nodeFetch = require('node-fetch'); |
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
5314
113