Skip to content

Commit c85ed00

Browse files
committed
Use updated method
1 parent e33f527 commit c85ed00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/esbuild-plugin-node/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function wrapModule(
3333
let mod = module.exports;
3434
3535
const { ${oTelInstrumentationClass} } = require('${oTelInstrumentationPackage}');
36-
const instrumentations = new ${oTelInstrumentationClass}(${oTelInstrumentationConstructorArgs}).init();
36+
const instrumentations = new ${oTelInstrumentationClass}(${oTelInstrumentationConstructorArgs}).getModuleDefinitions();
3737
if (instrumentations.length > 1 && !'${instrumentationName}') {
3838
throw new Error('instrumentationName must be specified because ${oTelInstrumentationClass} has multiple instrumentations');
3939
}

0 commit comments

Comments
 (0)