Closed Nymphium closed 2 years ago
Prometheus may define the format of help and type information as "#" ("HELP" | "TYPE") ... whereas OpenMetrics defines as "#" SP ("HELP" | "TYPE") .... In the former text the definition has ambiguousness what is "token", and the current implementation chooses no space between "#" and "HELP"/"TYPE". However, for example, datadog agent assumes there should have space between the first character "#" and the following "HELP"/"TYPE".
"#" ("HELP" | "TYPE") ...
"#" SP ("HELP" | "TYPE") ...
This PR adds space to split into tokens.
Prometheus may define the format of help and type information as
"#" ("HELP" | "TYPE") ...
whereas OpenMetrics defines as"#" SP ("HELP" | "TYPE") ...
. In the former text the definition has ambiguousness what is "token", and the current implementation chooses no space between "#" and "HELP"/"TYPE". However, for example, datadog agent assumes there should have space between the first character "#" and the following "HELP"/"TYPE".This PR adds space to split into tokens.