Commit 915643c
authored
sdk: Fix DefaultSpan raising an exception in use_span (#577)
Fixes the error caused by span.status in use_span.
As status is not included in opentelemetry.trace.Span, span.status in use_span may cause an error.
For example, when use_span is called with DefaultSpan, it causes the error below.
'DefaultSpan' object has no attribute 'status'1 parent 44b592c commit 915643c
File tree
2 files changed
+12
-1
lines changed- opentelemetry-sdk
- src/opentelemetry/sdk/trace
- tests/trace
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
| 609 | + | |
609 | 610 | | |
610 | 611 | | |
611 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
| |||
0 commit comments