sentry-core: make TraceContext publicly readable#534
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #534 +/- ##
==========================================
- Coverage 69.66% 69.53% -0.14%
==========================================
Files 66 66
Lines 6564 6577 +13
==========================================
Hits 4573 4573
- Misses 1991 2004 +13 |
Swatinem
left a comment
There was a problem hiding this comment.
its a bit unfortunate this is behind a lock so you need to clone :-(
but oh well
Agreed. I think in future there would be scope for handling this better with something like parking_lot's But I think for this case, a one-off clone is not too bad. |
|
I would be hesitant to give out more lock guards, with the recent deadlock I tracked down and fixed quite painfully: #536 We should rather remove the need for locking in the first place somehow, though I have no good ideas at the moment. |
Raised in review of #533 (comment)
This PR exposes the
TraceContextstored on aTransactionorSpan.All data on the
TraceContextis publicly readable in other SDKs, such as Python or Javascript.sentry-rust/sentry-types/src/protocol/v7.rs
Line 1439 in 5013eb1