@opentelemetry/instrumentation-bunyan
Advanced tools
Comparing version 0.32.2 to 0.33.0
@@ -28,3 +28,4 @@ "use strict"; | ||
return [ | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('bunyan', ['<2.0'], logger => { | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('bunyan', ['<2.0'], (logger, moduleVersion) => { | ||
this._diag.debug(`Applying patch for bunyan@${moduleVersion}`); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -39,5 +40,6 @@ const proto = logger.prototype; | ||
return logger; | ||
}, logger => { | ||
}, (logger, moduleVersion) => { | ||
if (logger === undefined) | ||
return; | ||
this._diag.debug(`Removing patch for bunyan@${moduleVersion}`); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -82,3 +84,3 @@ this._unwrap(logger.prototype, '_emit'); | ||
if (err) { | ||
api_1.diag.error('bunyan instrumentation: error calling logHook', err); | ||
this._diag.error('error calling logHook', err); | ||
} | ||
@@ -85,0 +87,0 @@ }, true); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.32.2"; | ||
export declare const VERSION = "0.33.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.32.2'; | ||
exports.VERSION = '0.33.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-bunyan", | ||
"version": "0.32.2", | ||
"version": "0.33.0", | ||
"description": "OpenTelemetry instrumentation for bunyan", | ||
@@ -38,6 +38,3 @@ "main": "build/src/index.js", | ||
"build/src/**/*.js.map", | ||
"build/src/**/*.d.ts", | ||
"doc", | ||
"LICENSE", | ||
"README.md" | ||
"build/src/**/*.d.ts" | ||
], | ||
@@ -68,7 +65,7 @@ "publishConfig": { | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.44.0", | ||
"@opentelemetry/instrumentation": "^0.45.1", | ||
"@types/bunyan": "1.8.9" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-bunyan#readme", | ||
"gitHead": "a8c225d2febcac561a70ca586d3efd5a84f9f3fa" | ||
"gitHead": "607d375595da3ab51b7f773ac360900121c4361b" | ||
} |
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
33138
173
+ Added@opentelemetry/instrumentation@0.45.1(transitive)
- Removed@opentelemetry/instrumentation@0.44.0(transitive)