From 469eb1c57e58655391955bdd3be7ad1b8128e546 Mon Sep 17 00:00:00 2001 From: owent Date: Wed, 15 Feb 2023 11:52:56 +0800 Subject: [PATCH] Fix `MockLogRecordable` Signed-off-by: owent --- sdk/test/logs/logger_sdk_test.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sdk/test/logs/logger_sdk_test.cc b/sdk/test/logs/logger_sdk_test.cc index 2127ccf459..5f6467cd91 100644 --- a/sdk/test/logs/logger_sdk_test.cc +++ b/sdk/test/logs/logger_sdk_test.cc @@ -131,13 +131,14 @@ class MockLogRecordable final : public opentelemetry::sdk::logs::Recordable void CopyFrom(const MockLogRecordable &other) { - severity_ = other.severity_; - body_ = other.body_; - trace_id_ = other.trace_id_; - span_id_ = other.span_id_; - trace_flags_ = other.trace_flags_; - event_name_ = other.event_name_; - event_domain_ = other.event_domain_; + severity_ = other.severity_; + body_ = other.body_; + trace_id_ = other.trace_id_; + span_id_ = other.span_id_; + trace_flags_ = other.trace_flags_; + event_name_ = other.event_name_; + event_domain_ = other.event_domain_; + observed_timestamp_ = other.observed_timestamp_; } private: