Skip to content

Commit

Permalink
Sets LogEntry.TraceSampled to true the entry is traced.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Sep 14, 2020
1 parent 50e0141 commit 7480149
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ private void SetTraceAndSpanIfAny(LogEntry entry)
if ((TraceContextForLogEntry.FromGoogleTrace() ?? TraceContextForLogEntry.FromExternalTrace(_serviceProvider)) is TraceContextForLogEntry trace)
{
entry.Trace = _traceTarget.GetFullTraceName(trace.TraceId);
entry.TraceSampled = true;
entry.SpanId = trace.SpanId;
}
}
Expand Down

0 comments on commit 7480149

Please sign in to comment.