diff --git a/plugins/node/opentelemetry-instrumentation-express/test/custom-config.test.ts b/plugins/node/opentelemetry-instrumentation-express/test/custom-config.test.ts index d6b418c60c..ffc02a53db 100644 --- a/plugins/node/opentelemetry-instrumentation-express/test/custom-config.test.ts +++ b/plugins/node/opentelemetry-instrumentation-express/test/custom-config.test.ts @@ -26,8 +26,9 @@ import * as assert from 'assert'; import { RPCMetadata, RPCType, setRPCMetadata } from '@opentelemetry/core'; import { ExpressLayerType } from '../src/enums/ExpressLayerType'; import { AttributeNames } from '../src/enums/AttributeNames'; -import { ExpressInstrumentation, ExpressInstrumentationConfig } from '../src'; -import { createServer, httpRequest } from './utils'; +import { ExpressInstrumentation } from '../src/instrumentation.js'; +import { ExpressInstrumentationConfig } from '../src/types.js'; +import { createServer, httpRequest } from './utils.js'; const instrumentation = new ExpressInstrumentation({ ignoreLayersType: [ExpressLayerType.MIDDLEWARE], diff --git a/plugins/node/opentelemetry-instrumentation-express/test/express.test.ts b/plugins/node/opentelemetry-instrumentation-express/test/express.test.ts index 80c0251815..092e91c991 100644 --- a/plugins/node/opentelemetry-instrumentation-express/test/express.test.ts +++ b/plugins/node/opentelemetry-instrumentation-express/test/express.test.ts @@ -23,8 +23,8 @@ import { } from '@opentelemetry/sdk-trace-base'; import * as assert from 'assert'; import { AttributeNames } from '../src/enums/AttributeNames'; -import { ExpressInstrumentation } from '../src'; -import { createServer, httpRequest, serverWithMiddleware } from './utils'; +import { ExpressInstrumentation } from '../src/instrumentation.js'; +import { createServer, httpRequest, serverWithMiddleware } from './utils.js'; import { SemanticAttributes } from '@opentelemetry/semantic-conventions'; const instrumentation = new ExpressInstrumentation(); diff --git a/plugins/node/opentelemetry-instrumentation-express/test/hooks.test.ts b/plugins/node/opentelemetry-instrumentation-express/test/hooks.test.ts index 90d98a356c..8fb6f5dcc5 100644 --- a/plugins/node/opentelemetry-instrumentation-express/test/hooks.test.ts +++ b/plugins/node/opentelemetry-instrumentation-express/test/hooks.test.ts @@ -24,9 +24,9 @@ import { import * as assert from 'assert'; import type * as http from 'http'; import * as sinon from 'sinon'; -import { ExpressInstrumentation } from '../src'; -import { ExpressRequestInfo, SpanNameHook } from '../src/types'; -import { ExpressLayerType } from '../src/enums/ExpressLayerType'; +import { ExpressInstrumentation } from '../src/instrumentation.js'; +import { ExpressRequestInfo, SpanNameHook } from '../src/types.js'; +import { ExpressLayerType } from '../src/enums/ExpressLayerType.js'; import { SemanticAttributes } from '@opentelemetry/semantic-conventions'; const instrumentation = new ExpressInstrumentation(); diff --git a/plugins/node/opentelemetry-instrumentation-express/test/ignore-all.test.ts b/plugins/node/opentelemetry-instrumentation-express/test/ignore-all.test.ts index 0fdebeabfb..ac66747ba0 100644 --- a/plugins/node/opentelemetry-instrumentation-express/test/ignore-all.test.ts +++ b/plugins/node/opentelemetry-instrumentation-express/test/ignore-all.test.ts @@ -23,9 +23,10 @@ import { } from '@opentelemetry/sdk-trace-base'; import * as assert from 'assert'; import { RPCMetadata, RPCType, setRPCMetadata } from '@opentelemetry/core'; -import { AttributeNames } from '../src/enums/AttributeNames'; -import { ExpressInstrumentation, ExpressLayerType } from '../src'; -import { createServer, httpRequest } from './utils'; +import { AttributeNames } from '../src/enums/AttributeNames.js'; +import { ExpressInstrumentation } from '../src/instrumentation.js'; +import { ExpressLayerType } from '../src/enums/ExpressLayerType.js'; +import { createServer, httpRequest } from './utils.js'; const instrumentation = new ExpressInstrumentation({ ignoreLayersType: [ diff --git a/plugins/node/opentelemetry-instrumentation-express/test/utils.test.ts b/plugins/node/opentelemetry-instrumentation-express/test/utils.test.ts index fc927a9b7f..760feaa536 100644 --- a/plugins/node/opentelemetry-instrumentation-express/test/utils.test.ts +++ b/plugins/node/opentelemetry-instrumentation-express/test/utils.test.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import * as utils from '../src/utils'; +import * as utils from '../src/utils.js'; import * as assert from 'assert'; -import { ExpressInstrumentationConfig } from '../src/types'; -import { ExpressLayer } from '../src/internal-types'; -import { ExpressLayerType } from '../src/enums/ExpressLayerType'; -import { AttributeNames } from '../src/enums/AttributeNames'; +import { ExpressInstrumentationConfig } from '../src/types.js'; +import { ExpressLayer } from '../src/internal-types.js'; +import { ExpressLayerType } from '../src/enums/ExpressLayerType.js'; +import { AttributeNames } from '../src/enums/AttributeNames.js'; describe('Utils', () => { describe('isLayerIgnored()', () => {