@opencensus/instrumentation-http2
Advanced tools
Comparing version 0.0.22 to 0.1.0
@@ -18,2 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.plugin = exports.Http2Plugin = void 0; | ||
const core_1 = require("@opencensus/core"); | ||
@@ -50,2 +51,3 @@ const instrumentation_http_1 = require("@opencensus/instrumentation-http"); | ||
return function patchedConnect(authority) { | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'IArguments' is not assignable to... Remove this comment to see the full error message | ||
const client = original.apply(this, arguments); | ||
@@ -63,4 +65,6 @@ shimmer.wrap(client, 'request', original => plugin.getPatchRequestFunction()(original, authority)); | ||
if (headers['x-opencensus-outgoing-request']) { | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'Http2Session' is not assignable ... Remove this comment to see the full error message | ||
return original.apply(this, arguments); | ||
} | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'Http2Session' is not assignable ... Remove this comment to see the full error message | ||
const request = original.apply(this, arguments); | ||
@@ -136,2 +140,3 @@ plugin.tracer.wrapEmitter(request); | ||
return function patchedCreateServer() { | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'IArguments' is not assignable to... Remove this comment to see the full error message | ||
const server = original.apply(this, arguments); | ||
@@ -150,2 +155,3 @@ shimmer.wrap(server.constructor.prototype, 'emit', plugin.getPatchEmitFunction()); | ||
if (event !== 'stream') { | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'Http2Server' is not assignable t... Remove this comment to see the full error message | ||
return original.apply(this, arguments); | ||
@@ -178,5 +184,7 @@ } | ||
statusCode = arguments[0][':status']; | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'IArguments' is not assignable to... Remove this comment to see the full error message | ||
return stream.respond.apply(this, arguments); | ||
}; | ||
return plugin.tracer.startRootSpan(traceOptions, rootSpan => { | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'Http2Server' is not assignable t... Remove this comment to see the full error message | ||
if (!rootSpan) | ||
@@ -188,2 +196,3 @@ return original.apply(this, arguments); | ||
stream.end = originalEnd; | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'IArguments' is not assignable to... Remove this comment to see the full error message | ||
const returned = stream.end.apply(this, arguments); | ||
@@ -204,2 +213,3 @@ const userAgent = (headers['user-agent'] || | ||
}; | ||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'Http2Server' is not assignable t... Remove this comment to see the full error message | ||
return original.apply(this, arguments); | ||
@@ -206,0 +216,0 @@ }); |
@@ -17,7 +17,14 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./http2")); | ||
__exportStar(require("./http2"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@opencensus/instrumentation-http2", | ||
"version": "0.0.22", | ||
"version": "0.1.0", | ||
"description": "Opencensus http2 automatic instrumentation package.", | ||
@@ -52,18 +52,18 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@types/mocha": "^7.0.0", | ||
"@types/node": "^10.12.12", | ||
"@types/semver": "^7.0.0", | ||
"@types/shimmer": "^1.0.1", | ||
"codecov": "^3.6.2", | ||
"gts": "^1.0.0", | ||
"mocha": "^7.0.0", | ||
"nyc": "^14.0.0", | ||
"rimraf": "^3.0.0", | ||
"ts-mocha": "^7.0.0", | ||
"ts-node": "^8.0.0", | ||
"typescript": "~2.9.0" | ||
"@types/mocha": "8.2.3", | ||
"@types/node": "10.17.60", | ||
"@types/semver": "7.3.7", | ||
"@types/shimmer": "1.0.2", | ||
"codecov": "3.8.3", | ||
"gts": "1.1.2", | ||
"mocha": "7.2.0", | ||
"nyc": "15.1.0", | ||
"rimraf": "3.0.2", | ||
"ts-mocha": "8.0.0", | ||
"ts-node": "8.10.2", | ||
"typescript": "3.9.10" | ||
}, | ||
"dependencies": { | ||
"@opencensus/core": "^0.0.22", | ||
"@opencensus/instrumentation-http": "^0.0.22", | ||
"@opencensus/core": "^0.1.0", | ||
"@opencensus/instrumentation-http": "^0.1.0", | ||
"semver": "^7.0.0", | ||
@@ -70,0 +70,0 @@ "shimmer": "^1.2.0" |
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
28488
298
1
+ Added@opencensus/core@0.1.0(transitive)
+ Added@opencensus/instrumentation-http@0.1.0(transitive)
- Removed@opencensus/core@0.0.22(transitive)
- Removed@opencensus/instrumentation-http@0.0.22(transitive)
Updated@opencensus/core@^0.1.0