50 std::array<char, 4096>
buffer;
51 auto mStream = fmt::format_to(
buffer.begin(),
"[METRIC] {}", metric.getName());
52 for (
auto&
value : metric.getValues()) {
54 [](
const std::string&
value) -> std::string {
return value; },
57 if (metric.getValuesSize() == 1) {
58 mStream = fmt::format_to(mStream,
",{} {}", metric.getFirstValueType(), stringValue);
60 mStream = fmt::format_to(mStream,
" {}={}",
value.first, stringValue);
64 mStream = fmt::format_to(mStream,
" {} {}",
convertTimestamp(metric.getTimestamp()), mTagString);
66 bool first = mTagString.empty();
67 for (
const auto& [
key,
value] : metric.getTags()) {
69 mStream = fmt::format_to(mStream,
",");
72 mStream = fmt::format_to(mStream,
"{}={}", o2::monitoring::tags::TAG_KEY[
key], o2::monitoring::tags::GetValue(
value));
74 mStream = fmt::format_to(mStream,
"\n");
75 auto size = std::distance(
buffer.begin(), mStream);
76 if (
size + 1 >= 4096) {