20#ifndef ORES_TELEMETRY_DOMAIN_SPAN_ID_HPP
21#define ORES_TELEMETRY_DOMAIN_SPAN_ID_HPP
46 std::array<std::byte, 8>
bytes{};
56 std::string
to_hex()
const;
Domain types for telemetry and observability.
Definition attribute_value.hpp:29
std::ostream & operator<<(std::ostream &os, const span_id &id)
Stream output operator for span_id.
Definition span_id.cpp:61
A 64-bit span identifier, compatible with OpenTelemetry.
Definition span_id.hpp:42
auto operator<=>(const span_id &) const =default
Default comparison operator.
static span_id from_hex(std::string_view hex)
Creates a span_id from a 16-character hex string.
Definition span_id.cpp:42
bool is_valid() const
Checks if the span_id is valid (not all zeros).
Definition span_id.cpp:28
std::array< std::byte, 8 > bytes
The raw 64-bit identifier.
Definition span_id.hpp:46
std::string to_hex() const
Converts the span_id to a 16-character lowercase hex string.
Definition span_id.cpp:33