MCPcopy Create free account
hub / github.com/apache/brpc / GetSpanDB

Function GetSpanDB

src/brpc/span.cpp:577–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577inline 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
586void Span::Submit(std::shared_ptr<Span> span, int64_t cpuwide_time_us) {
587 // Only submit spans without a local parent (i.e., server spans).

Callers 5

dump_to_dbMethod · 0.85
FindSpanFunction · 0.85
FindSpansFunction · 0.85
ListSpansFunction · 0.85
DescribeSpanDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected