Skip to content

Commit 4e65c7a

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ describe('Span', () => {
230230
assert.deepStrictEqual(span.attributes, {});
231231
assert.deepStrictEqual(span.links, []);
232232
assert.deepStrictEqual(span.events, []);
233+
233234
assert.ok(span.instrumentationLibrary);
235+
const { name, version } = span.instrumentationLibrary;
236+
assert.strictEqual(name, 'default');
237+
assert.strictEqual(version, '*');
234238
});
235239

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

0 commit comments

Comments
 (0)