Skip to content

Commit

Permalink
Moved TSpan::Link(TraceId) implementation to .cpp (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
domwst authored Dec 22, 2023
1 parent cc85e0d commit 7185eaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ydb/library/actors/wilson/wilson_span.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ namespace NWilson {
SerializeValue(std::move(value), pb->mutable_value());
}

TSpan& TSpan::Link(const TTraceId& traceId) {
return Link(traceId, {});
}

void TSpan::Send() {
Data->ActorSystem->Send(new IEventHandle(MakeWilsonUploaderId(), {}, new TEvWilson(&Data->Span)));
Data->Sent = true;
Expand Down
4 changes: 1 addition & 3 deletions ydb/library/actors/wilson/wilson_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ namespace NWilson {
return *this;
}

TSpan& Link(const TTraceId& traceId) {
return Link(traceId, {});
}
TSpan& Link(const TTraceId& traceId);

void EndOk() {
if (Y_UNLIKELY(*this)) {
Expand Down

0 comments on commit 7185eaa

Please sign in to comment.