13 #include "opentelemetry/nostd/variant.h"
14 #include "opentelemetry/sdk/common/attribute_utils.h"
15 #include "opentelemetry/version.h"
24 inline void GetHash(
size_t &seed,
const T &arg)
29 seed ^= hasher(arg) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
33 inline void GetHash(
size_t &seed,
const std::vector<T> &arg)
46 std::hash<std::string> hasher;
47 seed ^= hasher(std::string(arg)) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
50 struct GetHashForAttributeValueVisitor
65 for (
auto &kv : attribute_map)
68 nostd::visit(GetHashForAttributeValueVisitor(seed), kv.second);