Commit f41f83d
authored
All named tracers now share the same context (#424)
The conversation in open-telemetry/opentelemetry-specification#455 is
specifying that the tracer is no longer responsible for handling the setting
and getting of active spans. As such, named tracers would only be responsible
for creating new spans, but not for setting the active one.
This implies that there tracers do not have their own active spans.
In addition, there is a benefit of having a single active span, as it vastly
simplifies the process to modify the current span (no need to explicitly
retrieve the tracer responsible for getting the span).1 parent 18edbbe commit f41f83d
3 files changed
Lines changed: 22 additions & 17 deletions
File tree
- opentelemetry-api/src/opentelemetry/trace/propagation
- opentelemetry-sdk
- src/opentelemetry/sdk/trace
- tests/trace
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
546 | | - | |
547 | | - | |
| 545 | + | |
548 | 546 | | |
549 | 547 | | |
550 | 548 | | |
| |||
577 | 575 | | |
578 | 576 | | |
579 | 577 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | 578 | | |
584 | 579 | | |
585 | 580 | | |
| |||
601 | 596 | | |
602 | 597 | | |
603 | 598 | | |
604 | | - | |
605 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
606 | 602 | | |
607 | 603 | | |
608 | 604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
204 | 220 | | |
205 | 221 | | |
206 | 222 | | |
| |||
0 commit comments