Skip to content

Commit d1bdf89

Browse files
committed
refactor: assert more about instrumentation library
1 parent 8b8795d commit d1bdf89

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/opentelemetry-tracing/test/Span.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
hrTimeToMilliseconds,
3030
NoopLogger,
3131
hrTimeDuration,
32+
InstrumentationLibrary,
3233
} from '@opentelemetry/core';
3334

3435
const performanceTimeOrigin = hrTime();
@@ -230,7 +231,11 @@ describe('Span', () => {
230231
assert.deepStrictEqual(span.attributes, {});
231232
assert.deepStrictEqual(span.links, []);
232233
assert.deepStrictEqual(span.events, []);
234+
233235
assert.ok(span.instrumentationLibrary);
236+
const { name, version } = span.instrumentationLibrary;
237+
assert.strictEqual(name, 'default');
238+
assert.strictEqual(version, '*');
234239
});
235240

236241
it('should return ReadableSpan with attributes', () => {

0 commit comments

Comments
 (0)