|
|
|
|
|
by morelisp
1602 days ago
|
|
There are a frustrating number of fundamental corner cases due variance to floating point text formats, and slightly more in the descriptor if you also need that. It's simple to implement an expositor for a limited set of cases. As usual, it's much more difficult to parse what you actually find in the world. |
|
OpenMetrics's production rule for the format says:
And yet, the Prometheus Java client library exports a trailing comma with no subsequent label.As for fp, I've seen parsers break on `e` v. `E`, and `NaN`/`Inf`/ vs. `nan`/`inf`. The latest IETF draft even has a comment,
Control characters are allowed in descriptors and label values and no normalization form is specified.