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

Method Annotate

src/brpc/span.cpp:350–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void Span::Annotate(const char* fmt, ...) {
351 const int64_t anno_time = butil::cpuwide_time_us() + _base_real_us;
352 BAIDU_SCOPED_LOCK(_info_spinlock);
353 butil::string_appendf(&_info, BRPC_SPAN_INFO_SEP "%lld ",
354 (long long)anno_time);
355 va_list ap;
356 va_start(ap, fmt);
357 butil::string_vappendf(&_info, fmt, ap);
358 va_end(ap);
359}
360
361void Span::Annotate(const char* fmt, va_list args) {
362 const int64_t anno_time = butil::cpuwide_time_us() + _base_real_us;

Callers 4

SetFailedMethod · 0.80
IssueRPCMethod · 0.80
AnnotateSpanFunction · 0.80
AnnotateSpanExFunction · 0.80

Calls 4

cpuwide_time_usFunction · 0.85
string_appendfFunction · 0.85
string_vappendfFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected