Skip to content

Commit

Permalink
get span_id from context when Logger::Log received invalid span_id (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hamedprog authored May 16, 2022
1 parent 45f0235 commit e11cc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/logs/logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void Logger::Log(opentelemetry::logs::Severity severity,
}
else if (span_context.span_id().IsValid())
{
recordable->SetSpanId(span_id);
recordable->SetSpanId(span_context.span_id());
}

// TraceFlags
Expand Down

0 comments on commit e11cc62

Please sign in to comment.