diff --git a/sdk/include/opentelemetry/sdk/trace/span_data.h b/sdk/include/opentelemetry/sdk/trace/span_data.h index 96b8e5deee..09e17284d9 100644 --- a/sdk/include/opentelemetry/sdk/trace/span_data.h +++ b/sdk/include/opentelemetry/sdk/trace/span_data.h @@ -254,11 +254,8 @@ class SpanData final : public Recordable } void AddEvent(nostd::string_view name, - opentelemetry::common::SystemTimestamp timestamp = - opentelemetry::common::SystemTimestamp(std::chrono::system_clock::now()), - const opentelemetry::common::KeyValueIterable &attributes = - opentelemetry::common::KeyValueIterableView>( - {})) noexcept override + opentelemetry::common::SystemTimestamp timestamp, + const opentelemetry::common::KeyValueIterable &attributes) noexcept override { SpanDataEvent event(std::string(name), timestamp, attributes); events_.push_back(event);