Skip to content

Commit

Permalink
fix: remove the default export
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 committed Aug 11, 2021
1 parent 512e756 commit 41cbf63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -17,5 +17,4 @@
import { Instrumentation } from './instrumentation';

export * from './instrumentation';
export default Instrumentation;
export { Instrumentation as NestInstrumentation };
Expand Up @@ -24,14 +24,14 @@ import {
SimpleSpanProcessor,
} from '@opentelemetry/tracing';
import * as assert from 'assert';
import Instrumentation from '../src';
import { NestInstrumentation } from '../src';
import { getRequester, setup, App } from './setup';

import * as util from 'util';

const LIB_VERSION = require('@nestjs/core/package.json').version;

const instrumentation = new Instrumentation();
const instrumentation = new NestInstrumentation();
const memoryExporter = new InMemorySpanExporter();

util.inspect.defaultOptions.depth = 3;
Expand Down Expand Up @@ -190,7 +190,7 @@ const assertSpans = (actualSpans: any[], expectedSpans: any[]) => {
expected.instance
);

assert.strictEqual(span.attributes.component, Instrumentation.COMPONENT);
assert.strictEqual(span.attributes.component, NestInstrumentation.COMPONENT);
assert.strictEqual(
typeof span.attributes['nestjs.version'],
'string',
Expand Down

0 comments on commit 41cbf63

Please sign in to comment.