Skip to content

Commit bcd84a9

Browse files
authored
Merge pull request #378 from runloopai/adam/fix-text-metrics
Fix prometheus metrics text exporter rendering
2 parents 6e1bd7b + 187dd98 commit bcd84a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/textexporter.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ struct PrometheusMetric {
118118
buf += view.size();
119119
space -= view.size();
120120
}
121+
_render<typename Split::Next>(buf, space, val);
122+
return;
121123
}
124+
122125
auto v = std::to_string(val);
123126
auto ts = std::to_string(photon::now / 1000);
124127
if (v.size() < space) {

0 commit comments

Comments
 (0)