44 const utils::impl::SourceLocation& source_location = utils::impl::SourceLocation::Current()
53 ReferenceType reference_type = ReferenceType::kChild,
54 const utils::impl::SourceLocation& source_location = utils::impl::SourceLocation::Current()
60 Span& operator=(
const Span&) =
delete;
88 std::string_view trace_id,
89 std::string_view parent_span_id,
90 const utils::impl::SourceLocation& source_location = utils::impl::SourceLocation::Current()
104 std::string_view trace_id,
105 std::string_view parent_span_id,
106 std::string_view link,
107 const utils::impl::SourceLocation& source_location = utils::impl::SourceLocation::Current()
120 const utils::impl::SourceLocation& source_location = utils::impl::SourceLocation::Current()
129 const utils::impl::SourceLocation& source_location = utils::impl::SourceLocation::Current()
134 const utils::impl::SourceLocation& source_location = utils::impl::SourceLocation::Current()
178 void AddEvent(std::string_view event_name);
306 std::chrono::system_clock::time_point GetStartSystemTime() const noexcept;
308 std::chrono::steady_clock::time_point GetStartSteadyTime() const noexcept;
312 void AddTags(const
logging::LogExtra&,
utils::impl::InternalTag);
315 impl::TimeStorage& GetTimeStorage(
utils::impl::InternalTag) noexcept;
318 void LogTo(
utils::impl::InternalTag,
logging::impl::TagWriter writer) const;
322 struct OptionalDeleter {
323 void operator()(Impl*)
const noexcept;
325 static OptionalDeleter ShouldDelete()
noexcept;
327 static OptionalDeleter DoNotDelete()
noexcept;
330 constexpr explicit OptionalDeleter(
bool do_delete) noexcept
331 : do_delete_(do_delete)
334 const bool do_delete_;
340 friend class engine::TracePlugin;
342 explicit Span(std::unique_ptr<Impl, OptionalDeleter>&& pimpl);
344 std::string_view GetTag(std::string_view tag)
const;
346 std::unique_ptr<Impl, OptionalDeleter> pimpl_;