From b8cd1262ac4b93a8afcc33a919df381b828f4ad6 Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Thu, 16 Nov 2023 08:54:36 -0500 Subject: [PATCH] ESM workaround for iitm https://github.com/DataDog/import-in-the-middle/issues/29 --- .../test/node/EsmInstrumentation.test.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/experimental/packages/opentelemetry-instrumentation/test/node/EsmInstrumentation.test.mjs b/experimental/packages/opentelemetry-instrumentation/test/node/EsmInstrumentation.test.mjs index f09097cd796..2aea4a8ed94 100644 --- a/experimental/packages/opentelemetry-instrumentation/test/node/EsmInstrumentation.test.mjs +++ b/experimental/packages/opentelemetry-instrumentation/test/node/EsmInstrumentation.test.mjs @@ -15,12 +15,12 @@ */ import * as assert from 'assert'; -import { - InstrumentationBase, - InstrumentationNodeModuleDefinition, -} from '../../build/src/index.js'; +import * as mod from '../../build/src/index.js'; import * as exported from 'test-esm-module'; +const InstrumentationBase = mod.InstrumentationBase; +const InstrumentationNodeModuleDefinition = mod.InstrumentationNodeModuleDefinition + class TestInstrumentationWrapFn extends InstrumentationBase { constructor(config) { super('test-esm-instrumentation', '0.0.1', config);