Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opencensus/instrumentation-http

Package Overview
Dependencies
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencensus/instrumentation-http - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

9

build/src/http.js

@@ -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 @@ };

10

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc