Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Dec 23, 2024
1 parent f66cfc0 commit 084285d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/opentelemetry-node/import.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
// Register ESM hook and start the SDK.
// This is called for `--import @elastic/opentelemetry-node`.

import { register } from 'node:module';
import {register} from 'node:module';
import {isMainThread} from 'node:worker_threads';

// TODO: @opentelemetry/instrumentation should re-export this IITM method.
// XXX add explicit IITM dep?
// XXX can we have a guard that there is only one install of IITM in play?
import { createAddHookMessageChannel } from 'import-in-the-middle';
import {createAddHookMessageChannel} from 'import-in-the-middle';

import {log} from './lib/logging.js';

// Note: If there are *multiple* installations of import-in-the-middle, then
// only those instrumentations using this same one will be hooked.
const { registerOptions, waitForAllMessagesAcknowledged } =
createAddHookMessageChannel();
const {registerOptions, waitForAllMessagesAcknowledged} =
createAddHookMessageChannel();

if (isMainThread) {
log.trace('bootstrap-import: registering module hook');
Expand Down

0 comments on commit 084285d

Please sign in to comment.