@opencensus/instrumentation-http
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -133,5 +133,7 @@ "use strict"; | ||
// Makes sure the url is an url object | ||
let pathname = ''; | ||
if (typeof (options) === 'string') { | ||
options = url.parse(options); | ||
arguments[0] = options; | ||
pathname = options.pathname; | ||
} | ||
@@ -145,2 +147,7 @@ else { | ||
} | ||
try { | ||
pathname = options.pathname || url.parse(options.path).pathname; | ||
} | ||
catch (e) { | ||
} | ||
} | ||
@@ -151,3 +158,3 @@ const request = original.apply(this, arguments); | ||
const traceOptions = { | ||
name: `${request.method ? request.method : 'GET'} ${options.pathname}`, | ||
name: `${request.method ? request.method : 'GET'} ${pathname}`, | ||
kind: 'CLIENT', | ||
@@ -154,0 +161,0 @@ }; |
{ | ||
"name": "@opencensus/instrumentation-http", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Opencensus http automatic instrumentation package.", | ||
@@ -42,3 +42,3 @@ "main": "build/src/index.js", | ||
"@types/end-of-stream": "^1.4.0", | ||
"@types/mocha": "^2.2.48", | ||
"@types/mocha": "^5.2.5", | ||
"@types/nock": "^9.1.3", | ||
@@ -49,3 +49,3 @@ "@types/node": "^9.4.7", | ||
"@types/uuid": "^3.4.3", | ||
"gts": "^0.5.1", | ||
"gts": "^0.9.0", | ||
"mocha": "^5.0.4", | ||
@@ -56,7 +56,7 @@ "ncp": "^2.0.0", | ||
"rimraf": "^2.6.2", | ||
"ts-node": "^4.0.0", | ||
"ts-node": "^7.0.1", | ||
"typescript": "~2.7.2" | ||
}, | ||
"dependencies": { | ||
"@opencensus/core": "^0.0.7", | ||
"@opencensus/core": "^0.0.8", | ||
"end-of-stream": "^1.4.1", | ||
@@ -63,0 +63,0 @@ "semver": "^5.5.0", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
33012
421
1
+ Added@opencensus/core@0.0.8(transitive)
- Removed@opencensus/core@0.0.7(transitive)
Updated@opencensus/core@^0.0.8