75 std::unique_ptr<Impl> impl_;
RAII child span. Parent is whichever span is active on the current thread, which inside a resource AP...
Definition span.hpp:32
void add_event(const char *name) noexcept
Record a timestamped event on the span.
TracingSpan(const char *name) noexcept
Open a child span named name under the currently-active span.
void record_unknown_exception() noexcept
Record an unknown (non-std::exception) failure as an "exception" event and set span status to Error.
void end() noexcept
Mark the end of the span.
void record_exception(const std::exception &xcp) noexcept
Record xcp as an "exception" event and set span status to Error.
void set_status_error(const char *description="") noexcept
Mark the span as having failed. description is optional context.
void set_attribute(const char *key, T value) noexcept
Attach an attribute to the span. Supported value types: bool, std::int64_t, double,...
void set_status_ok() noexcept
Mark the span as having completed successfully.