We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b8795d commit d1bdf89Copy full SHA for d1bdf89
1 file changed
packages/opentelemetry-tracing/test/Span.test.ts
@@ -29,6 +29,7 @@ import {
29
hrTimeToMilliseconds,
30
NoopLogger,
31
hrTimeDuration,
32
+ InstrumentationLibrary,
33
} from '@opentelemetry/core';
34
35
const performanceTimeOrigin = hrTime();
@@ -230,7 +231,11 @@ describe('Span', () => {
230
231
assert.deepStrictEqual(span.attributes, {});
232
assert.deepStrictEqual(span.links, []);
233
assert.deepStrictEqual(span.events, []);
234
+
235
assert.ok(span.instrumentationLibrary);
236
+ const { name, version } = span.instrumentationLibrary;
237
+ assert.strictEqual(name, 'default');
238
+ assert.strictEqual(version, '*');
239
});
240
241
it('should return ReadableSpan with attributes', () => {
0 commit comments