11 #include "opentelemetry/sdk/metrics/state/filtered_ordered_attribute_map.h"
12 #include "opentelemetry/version.h"
75 return lhs.size() == rhs.size() &&
76 std::equal(lhs.begin(), lhs.end(), rhs.begin(), [](
char a,
char b) {
77 return std::tolower(static_cast<unsigned char>(a)) ==
78 std::tolower(static_cast<unsigned char>(b));
95 if (lhs.type_ != rhs.type_ || lhs.value_type_ != rhs.value_type_)
101 if (lhs.unit_ != rhs.unit_)
107 if (lhs.description_ != rhs.description_)
124 return "UpDownCounter";
128 return "ObservableCounter";
130 return "ObservableUpDownCounter";
132 return "ObservableGauge";
170 if (lhs.type_ != rhs.type_ || lhs.value_type_ != rhs.value_type_)
176 if (lhs.unit_ != rhs.unit_)
182 if (lhs.description_ != rhs.description_)
200 std::size_t hashcode{};
202 for (
char c : instrument_descriptor.name_)
205 static_cast<char>(std::tolower(
static_cast<unsigned char>(c))));