Skip to content

Commit

Permalink
ESM workaround for iitm
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Nov 16, 2023
1 parent a313501 commit e1f814f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
*/

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';

// This is a workaround for DataDog/import-in-the-middle#29
// see https://github.com/open-telemetry/opentelemetry-js/pull/4295#issuecomment-1813314266
const InstrumentationBase = mod.InstrumentationBase;
const InstrumentationNodeModuleDefinition = mod.InstrumentationNodeModuleDefinition

class TestInstrumentationWrapFn extends InstrumentationBase {
constructor(config) {
super('test-esm-instrumentation', '0.0.1', config);
Expand Down

0 comments on commit e1f814f

Please sign in to comment.