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

Function PrintAnnotationsAndRealTimeSpan

src/brpc/builtin/rpcz_service.cpp:232–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static bool PrintAnnotationsAndRealTimeSpan(
233 std::ostream& os, int64_t cur_time, int64_t* last_time,
234 SpanInfoExtractor** extr, int num_extr, const RpczSpan* span) {
235 if (cur_time == 0) {
236 // the field was not set.
237 return false;
238 }
239 PrintAnnotations(os, cur_time, last_time, extr, num_extr, span);
240 PrintRealTime(os, cur_time);
241 PrintElapse(os, cur_time, last_time);
242 return true;
243}
244
245inline int64_t GetStartRealTime(const RpczSpan& span) {
246 return span.type() == SPAN_TYPE_SERVER ?

Callers 2

PrintClientSpanFunction · 0.85
PrintServerSpanFunction · 0.85

Calls 3

PrintAnnotationsFunction · 0.85
PrintRealTimeFunction · 0.85
PrintElapseFunction · 0.85

Tested by

no test coverage detected