@opentelemetry/instrumentation-fastify
Advanced tools
Comparing version 0.32.1 to 0.32.2
@@ -123,7 +123,7 @@ "use strict"; | ||
} | ||
_patchConstructor(original) { | ||
_patchConstructor(moduleExports) { | ||
const instrumentation = this; | ||
this._diag.debug('Patching fastify constructor function'); | ||
function fastify(...args) { | ||
const app = original.apply(this, args); | ||
const app = moduleExports.fastify.apply(this, args); | ||
app.addHook('onRequest', instrumentation._hookOnRequest()); | ||
@@ -130,0 +130,0 @@ app.addHook('preHandler', instrumentation._hookPreHandler()); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.32.1"; | ||
export declare const VERSION = "0.32.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.32.1'; | ||
exports.VERSION = '0.32.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-fastify", | ||
"version": "0.32.1", | ||
"version": "0.32.2", | ||
"description": "OpenTelemetry fastify automatic instrumentation package.", | ||
@@ -56,3 +56,3 @@ "main": "build/src/index.js", | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "18.16.19", | ||
"@types/node": "18.6.5", | ||
"fastify": "4.18.0", | ||
@@ -71,3 +71,3 @@ "mocha": "7.2.0", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme", | ||
"gitHead": "b3d30afe7376760d211b20c4fb45988ac58c1d85" | ||
"gitHead": "d1436eb7e4543d92e23cb1ceff15bf5cf6c3c65c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
67922