We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 438e2b8 commit 152a565Copy full SHA for 152a565
packages/tracing/src/span.ts
@@ -56,7 +56,7 @@ export class Span implements SpanInterface {
56
/**
57
* Internal keeper of the status
58
*/
59
- public status?: SpanStatusType;
+ public status?: SpanStatusType | string;
60
61
62
* @inheritDoc
packages/tracing/test/span.test.ts
@@ -17,6 +17,7 @@ describe('Span', () => {
17
test('simple', () => {
18
const span = new Span({ sampled: true });
19
const span2 = span.startChild();
20
+
21
expect((span2 as any).parentSpanId).toBe((span as any).spanId);
22
expect((span2 as any).traceId).toBe((span as any).traceId);
23
expect((span2 as any).sampled).toBe((span as any).sampled);
0 commit comments