Skip to content

Commit

Permalink
esm: update test imports to include js suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDanielson committed Dec 11, 2023
1 parent 3571889 commit 75023bb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()', () => {
Expand Down

0 comments on commit 75023bb

Please sign in to comment.