Skip to content

Commit

Permalink
fix(generic-pool): remove deps on types package for ts5 compatibility (
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir authored Aug 16, 2023
1 parent b3d30af commit 651b4f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@opentelemetry/context-async-hooks": "^1.8.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/sdk-trace-node": "^1.8.0",
"@types/generic-pool": "^3.1.9",
"@types/mocha": "7.0.2",
"@types/node": "18.16.19",
"@types/semver": "7.5.0",
Expand All @@ -62,8 +63,7 @@
},
"dependencies": {
"@opentelemetry/instrumentation": "^0.41.2",
"@opentelemetry/semantic-conventions": "^1.0.0",
"@types/generic-pool": "^3.1.9"
"@opentelemetry/semantic-conventions": "^1.0.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-generic-pool#readme"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ import { VERSION } from './version';

const MODULE_NAME = 'generic-pool';

export default class Instrumentation extends InstrumentationBase<
typeof genericPool
> {
export default class Instrumentation extends InstrumentationBase<any> {
// only used for v2 - v2.3)
private _isDisabled = false;

Expand All @@ -40,7 +38,7 @@ export default class Instrumentation extends InstrumentationBase<

init() {
return [
new InstrumentationNodeModuleDefinition<typeof genericPool>(
new InstrumentationNodeModuleDefinition<any>(
MODULE_NAME,
['>=3'],
(moduleExports, moduleVersion) => {
Expand All @@ -63,7 +61,7 @@ export default class Instrumentation extends InstrumentationBase<
return moduleExports;
}
),
new InstrumentationNodeModuleDefinition<typeof genericPool>(
new InstrumentationNodeModuleDefinition<any>(
MODULE_NAME,
['^2.4'],
(moduleExports, moduleVersion) => {
Expand Down

0 comments on commit 651b4f8

Please sign in to comment.