Skip to content

Commit 152a565

Browse files
committed
ts(span): widen type
1 parent 438e2b8 commit 152a565

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/tracing/src/span.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class Span implements SpanInterface {
5656
/**
5757
* Internal keeper of the status
5858
*/
59-
public status?: SpanStatusType;
59+
public status?: SpanStatusType | string;
6060

6161
/**
6262
* @inheritDoc

packages/tracing/test/span.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ describe('Span', () => {
1717
test('simple', () => {
1818
const span = new Span({ sampled: true });
1919
const span2 = span.startChild();
20+
2021
expect((span2 as any).parentSpanId).toBe((span as any).spanId);
2122
expect((span2 as any).traceId).toBe((span as any).traceId);
2223
expect((span2 as any).sampled).toBe((span as any).sampled);

0 commit comments

Comments
 (0)