Skip to content

Commit e047b49

Browse files
committed
feat all: clean up generated tests overrides
commit_hash:46f3adee33fdfe378880b2385c833c9bce91f615
1 parent 4cd030c commit e047b49

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

core/src/utils/statistics/portability_info_test.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,12 @@ UTEST(MetricsPortabilityInfo, TooManyLabels) {
6666
[](Writer& writer) {
6767
writer.ValueWithLabels(
6868
42,
69-
{{"1", "1"},
70-
{"2", "2"},
71-
{"3", "3"},
72-
{"4", "4"},
73-
{"5", "5"},
74-
{"6", "6"},
75-
{"7", "7"},
76-
{"8", "8"},
77-
{"9", "9"}}
69+
{
70+
{"1", "1"}, {"2", "2"}, {"3", "3"}, {"4", "4"}, {"5", "5"}, {"6", "6"}, {"7", "7"},
71+
{"8", "8"}, {"9", "9"}, {"10", "10"}, {"11", "11"}, {"12", "12"}, {"13", "13"}, {"14", "14"},
72+
{"15", "15"}, {"16", "16"}, {"17", "17"}, {"18", "18"}, {"19", "19"}, {"20", "20"}, {"21", "21"},
73+
{"22", "22"}, {"23", "23"}, {"24", "24"}, {"25", "25"},
74+
}
7875
);
7976
},
8077
{{"0", "0"}}

core/src/utils/statistics/solomon_limits.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <array>
4+
#include <string_view>
45

56
USERVER_NAMESPACE_BEGIN
67

@@ -12,7 +13,7 @@ inline constexpr std::array<std::string_view, 6> kReservedLabelNames =
1213

1314
// https://solomon.yandex-team.ru/docs/concepts/data-model#limits
1415
// "application" is in commonLabels and can be overridden (nginx system metrics)
15-
inline constexpr std::size_t kMaxLabels = 16 - kReservedLabelNames.size() - 1;
16+
inline constexpr std::size_t kMaxLabels = 32 - kReservedLabelNames.size() - 1;
1617
inline constexpr std::size_t kMaxLabelNameLen = 31;
1718
inline constexpr std::size_t kMaxLabelValueLen = 200;
1819

0 commit comments

Comments
 (0)