| 375 | } |
| 376 | |
| 377 | void Span::AnnotateCStr(const char* info, size_t length) { |
| 378 | const int64_t anno_time = butil::cpuwide_time_us() + _base_real_us; |
| 379 | BAIDU_SCOPED_LOCK(_info_spinlock); |
| 380 | butil::string_appendf(&_info, BRPC_SPAN_INFO_SEP "%lld ", |
| 381 | (long long)anno_time); |
| 382 | if (length <= 0) { |
| 383 | _info.append(info); |
| 384 | } else { |
| 385 | _info.append(info, length); |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | size_t Span::CountClientSpans() const { |
| 390 | size_t n = 1; |
no test coverage detected