diff --git a/sdk/src/logs/logger.cc b/sdk/src/logs/logger.cc index 0222b786bc..fc690c6773 100644 --- a/sdk/src/logs/logger.cc +++ b/sdk/src/logs/logger.cc @@ -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