Commit 4524b65
authored
fix(tracing): Stop setting
Do not set transaction-based spans on the scope when the streaming trace lifecycle is enabled. Early returns in `start_span()` and `start_transaction()` return a `NoOpSpan`, whose `__enter__()` and `__exit__()` methods still mutate the scope.NoOpSpan on scope in the streaming trace lifecycle (#6844)1 parent 2e9f26e commit 4524b65
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
389 | 393 | | |
390 | 394 | | |
391 | 395 | | |
| |||
395 | 399 | | |
396 | 400 | | |
397 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
398 | 409 | | |
399 | 410 | | |
400 | 411 | | |
401 | 412 | | |
402 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
403 | 417 | | |
404 | 418 | | |
405 | 419 | | |
| |||
1479 | 1493 | | |
1480 | 1494 | | |
1481 | 1495 | | |
| 1496 | + | |
1482 | 1497 | | |
1483 | 1498 | | |
1484 | 1499 | | |
0 commit comments