@opentelemetry/instrumentation-generic-pool
Advanced tools
Comparing version 0.37.0 to 0.38.0
@@ -1,4 +0,2 @@ | ||
import GenericPoolInstrumentation from './instrumentation'; | ||
export { GenericPoolInstrumentation }; | ||
export default GenericPoolInstrumentation; | ||
export * from './instrumentation'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,7 +17,14 @@ "use strict"; | ||
*/ | ||
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" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GenericPoolInstrumentation = void 0; | ||
const instrumentation_1 = require("./instrumentation"); | ||
exports.GenericPoolInstrumentation = instrumentation_1.default; | ||
exports.default = instrumentation_1.default; | ||
__exportStar(require("./instrumentation"), exports); | ||
//# sourceMappingURL=index.js.map |
import { InstrumentationBase, InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
export default class Instrumentation extends InstrumentationBase { | ||
export declare class GenericPoolInstrumentation extends InstrumentationBase { | ||
private _isDisabled; | ||
@@ -4,0 +4,0 @@ constructor(config?: InstrumentationConfig); |
@@ -18,2 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GenericPoolInstrumentation = void 0; | ||
const api = require("@opentelemetry/api"); | ||
@@ -23,3 +24,3 @@ const instrumentation_1 = require("@opentelemetry/instrumentation"); | ||
const MODULE_NAME = 'generic-pool'; | ||
class Instrumentation extends instrumentation_1.InstrumentationBase { | ||
class GenericPoolInstrumentation extends instrumentation_1.InstrumentationBase { | ||
constructor(config = {}) { | ||
@@ -32,3 +33,3 @@ super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, config); | ||
return [ | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['>=3'], moduleExports => { | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['>=3.0.0 <4'], moduleExports => { | ||
const Pool = moduleExports.Pool; | ||
@@ -45,3 +46,3 @@ if ((0, instrumentation_1.isWrapped)(Pool.prototype.acquire)) { | ||
}), | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['^2.4'], moduleExports => { | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['>=2.4.0 <3'], moduleExports => { | ||
const Pool = moduleExports.Pool; | ||
@@ -58,3 +59,3 @@ if ((0, instrumentation_1.isWrapped)(Pool.prototype.acquire)) { | ||
}), | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['2 - 2.3'], moduleExports => { | ||
new instrumentation_1.InstrumentationNodeModuleDefinition(MODULE_NAME, ['>=2.0.0 <2.4'], moduleExports => { | ||
this._isDisabled = false; | ||
@@ -121,3 +122,3 @@ if ((0, instrumentation_1.isWrapped)(moduleExports.Pool)) { | ||
} | ||
exports.default = Instrumentation; | ||
exports.GenericPoolInstrumentation = GenericPoolInstrumentation; | ||
//# sourceMappingURL=instrumentation.js.map |
@@ -1,3 +0,3 @@ | ||
export declare const PACKAGE_VERSION = "0.37.0"; | ||
export declare const PACKAGE_VERSION = "0.38.0"; | ||
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-generic-pool"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,4 +20,4 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.PACKAGE_VERSION = '0.37.0'; | ||
exports.PACKAGE_VERSION = '0.38.0'; | ||
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-generic-pool'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-generic-pool", | ||
"version": "0.37.0", | ||
"version": "0.38.0", | ||
"description": "OpenTelemetry instrumentation for `generic-pool` resource pool for managing expensive resources", | ||
@@ -14,2 +14,3 @@ "main": "build/src/index.js", | ||
"lint:fix": "eslint . --ext .ts --fix", | ||
"lint:readme": "node ../../../scripts/lint-readme.js", | ||
"precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-generic-pool --include-dependencies", | ||
@@ -66,3 +67,3 @@ "prewatch": "npm run precompile", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-generic-pool#readme", | ||
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020" | ||
"gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7" | ||
} |
@@ -20,3 +20,3 @@ # OpenTelemetry Generic Pool Instrumentation for Node.js | ||
- `>=2.0.0` | ||
- [`generic-pool`](https://www.npmjs.com/package/generic-pool) version `>=2.0.0 <4` | ||
@@ -23,0 +23,0 @@ ## Usage |
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
35416
178