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

Function AnnotateSpan

src/brpc/span.cpp:448–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void AnnotateSpan(const char* fmt, ...) {
449 std::shared_ptr<Span> span = GetTlsParentSpan();
450 if (span) { // TRACEPRINTF checks CanAnnotateSpan, but this is safer.
451 va_list ap;
452 va_start(ap, fmt);
453 span->Annotate(fmt, ap);
454 va_end(ap);
455 }
456}
457
458void AnnotateSpanEx(std::shared_ptr<Span> span, const char* fmt, ...) {
459 if (span) {

Callers

nothing calls this directly

Calls 2

GetTlsParentSpanFunction · 0.85
AnnotateMethod · 0.80

Tested by

no test coverage detected