@opentelemetry/instrumentation-generic-pool
Advanced tools
Comparing version 0.35.0 to 0.36.0
import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
export default class Instrumentation extends InstrumentationBase<any> { | ||
export default class Instrumentation extends InstrumentationBase { | ||
private _isDisabled; | ||
constructor(config?: InstrumentationConfig); | ||
init(): InstrumentationNodeModuleDefinition<any>[]; | ||
init(): InstrumentationNodeModuleDefinition[]; | ||
private _acquirePatcher; | ||
@@ -7,0 +7,0 @@ private _poolWrapper; |
@@ -30,4 +30,3 @@ "use strict"; | ||
return [ | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['>=3'], (moduleExports, moduleVersion) => { | ||
api.diag.debug(`Applying patch for ${MODULE_NAME}@${moduleVersion}`); | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['>=3'], moduleExports => { | ||
const Pool = moduleExports.Pool; | ||
@@ -39,4 +38,3 @@ if ((0, instrumentation_1.isWrapped)(Pool.prototype.acquire)) { | ||
return moduleExports; | ||
}, (moduleExports, moduleVersion) => { | ||
api.diag.debug(`Removing patch for ${MODULE_NAME}@${moduleVersion}`); | ||
}, moduleExports => { | ||
const Pool = moduleExports.Pool; | ||
@@ -46,4 +44,3 @@ this._unwrap(Pool.prototype, 'acquire'); | ||
}), | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['^2.4'], (moduleExports, moduleVersion) => { | ||
api.diag.debug(`Applying patch for ${MODULE_NAME}@${moduleVersion}`); | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['^2.4'], moduleExports => { | ||
const Pool = moduleExports.Pool; | ||
@@ -55,4 +52,3 @@ if ((0, instrumentation_1.isWrapped)(Pool.prototype.acquire)) { | ||
return moduleExports; | ||
}, (moduleExports, moduleVersion) => { | ||
api.diag.debug(`Removing patch for ${MODULE_NAME}@${moduleVersion}`); | ||
}, moduleExports => { | ||
const Pool = moduleExports.Pool; | ||
@@ -62,4 +58,3 @@ this._unwrap(Pool.prototype, 'acquire'); | ||
}), | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['2 - 2.3'], (moduleExports, moduleVersion) => { | ||
api.diag.debug(`Applying patch for ${MODULE_NAME}@${moduleVersion}`); | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['2 - 2.3'], moduleExports => { | ||
this._isDisabled = false; | ||
@@ -71,4 +66,3 @@ if ((0, instrumentation_1.isWrapped)(moduleExports.Pool)) { | ||
return moduleExports; | ||
}, (moduleExports, moduleVersion) => { | ||
api.diag.debug(`Removing patch for ${MODULE_NAME}@${moduleVersion}`); | ||
}, moduleExports => { | ||
// since the object is created on the fly every time, we need to use | ||
@@ -75,0 +69,0 @@ // a boolean switch here to disable the instrumentation |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.0"; | ||
export declare const VERSION = "0.36.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.35.0'; | ||
exports.VERSION = '0.36.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-generic-pool", | ||
"version": "0.35.0", | ||
"version": "0.36.0", | ||
"description": "OpenTelemetry Generic Pool automatic instrumentation package", | ||
@@ -62,7 +62,7 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.50.0", | ||
"@opentelemetry/instrumentation": "^0.51.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-generic-pool#readme", | ||
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb" | ||
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973" | ||
} |
Sorry, the diff of this file is not supported yet
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
34648
170
+ Added@opentelemetry/api-logs@0.51.1(transitive)
+ Added@opentelemetry/instrumentation@0.51.1(transitive)
+ Addedacorn-import-attributes@1.9.5(transitive)
+ Addedimport-in-the-middle@1.7.4(transitive)
- Removed@opentelemetry/api-logs@0.50.0(transitive)
- Removed@opentelemetry/instrumentation@0.50.0(transitive)
- Removedacorn-import-assertions@1.9.0(transitive)
- Removedimport-in-the-middle@1.7.1(transitive)