| 91 | } |
| 92 | |
| 93 | void ClearTlsParentSpan() { |
| 94 | using namespace bthread; |
| 95 | LocalStorage ls = BAIDU_GET_VOLATILE_THREAD_LOCAL(tls_bls); |
| 96 | if (ls.rpcz_parent_span) { |
| 97 | static_cast<std::weak_ptr<Span>*>(ls.rpcz_parent_span)->reset(); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | bool HasTlsParentSpan() { |
| 102 | using namespace bthread; |
no test coverage detected