| 575 | } |
| 576 | |
| 577 | inline int GetSpanDB(butil::intrusive_ptr<SpanDB>* db) { |
| 578 | BAIDU_SCOPED_LOCK(g_span_db_mutex); |
| 579 | if (g_span_db != NULL) { |
| 580 | *db = g_span_db; |
| 581 | return 0; |
| 582 | } |
| 583 | return -1; |
| 584 | } |
| 585 | |
| 586 | void Span::Submit(std::shared_ptr<Span> span, int64_t cpuwide_time_us) { |
| 587 | // Only submit spans without a local parent (i.e., server spans). |
no outgoing calls
no test coverage detected