We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33f527 commit c85ed00Copy full SHA for c85ed00
packages/esbuild-plugin-node/src/common.ts
@@ -33,7 +33,7 @@ export function wrapModule(
33
let mod = module.exports;
34
35
const { ${oTelInstrumentationClass} } = require('${oTelInstrumentationPackage}');
36
- const instrumentations = new ${oTelInstrumentationClass}(${oTelInstrumentationConstructorArgs}).init();
+ const instrumentations = new ${oTelInstrumentationClass}(${oTelInstrumentationConstructorArgs}).getModuleDefinitions();
37
if (instrumentations.length > 1 && !'${instrumentationName}') {
38
throw new Error('instrumentationName must be specified because ${oTelInstrumentationClass} has multiple instrumentations');
39
}
0 commit comments