Commit f48aea4
OM text exposition for NH (#1087)
* Start implement OM text exposition for nh, add first no obs test
* Correct template for nh sample spans, add test
* Correct templating and appending for deltas, add longer spans test
* Add tests for nh with labels, remove labels sorting
* Break down logic classic vs nh samples, add tests for classic-native histograms cohabitation
* Move classic sample logic back to where it belongs
* Assign nh to value, correct nil values in tests, clean up white spaces
* Add logic for exposing nh exemplars
* Please linters
* Assign nh_exemplars to exemplarstr
* Add Any type to metric_family in OM exposition test
* Change printing order of nh spans and deltas according to OM 2.0 proposal
* Shorten name of spans and deltas as per OM 2.0 proposal
* Adapt nh with UTF-8 tests to new testing framework
* Update prometheus_client/openmetrics/exposition.py
* Update prometheus_client/openmetrics/exposition.py
* Eliminate erroneous abbreviation for spans and deltas
---------
Signed-off-by: Arianna Vespri <[email protected]>
Signed-off-by: Arianna Vespri <[email protected]>
Co-authored-by: Chris Marchbanks <[email protected]>1 parent 7368028 commit f48aea4
File tree
3 files changed
+247
-57
lines changed- prometheus_client
- openmetrics
- tests/openmetrics
3 files changed
+247
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
33 | 56 | | |
34 | 57 | | |
35 | 58 | | |
| |||
58 | 81 | | |
59 | 82 | | |
60 | 83 | | |
61 | | - | |
62 | 84 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
85 | 144 | | |
86 | 145 | | |
87 | 146 | | |
88 | 147 | | |
89 | | - | |
| 148 | + | |
90 | 149 | | |
91 | | - | |
| 150 | + | |
92 | 151 | | |
93 | 152 | | |
94 | 153 | | |
95 | 154 | | |
96 | | - | |
| 155 | + | |
97 | 156 | | |
98 | | - | |
| 157 | + | |
99 | 158 | | |
100 | 159 | | |
101 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| |||
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments