You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(om2): switch ABNF from RFC 5234 to RFC 7405 (#2923)
* feat(om2): switch ABNF from RFC 5234 to RFC 7405 for explicit case sensitivity
Replace all %d decimal literals with readable %s"..." case-sensitive string
literals. Mark inf/infinity/nan as %i"..." to preserve their intentional
case-insensitivity. Keeps all semantics identical.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
* refactor(om2): inline eof token in ABNF
eof was used only once; inline %s"EOF" directly at the use site and
remove the separate definition.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
* refactor(om2): inline single-use ABNF tokens
Inline type/help/unit, six metric-type keywords, EQ, and gh-count/gh-sum
directly at their use sites. Keep gauge and histogram as named tokens
since they are reused in gaugehistogram.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
* refactor(om2): inline gauge and histogram ABNF tokens
Use %s"gaugehistogram" directly instead of concatenating gauge and
histogram tokens, allowing both to be inlined as well.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
* feat(om2): switch ABNF to RFC 7405 with readable string literals
- Update ABNF reference from RFC 5234 to RFC 7405
- Replace all %d decimal literals with %s"..." case-sensitive literals
- Mark inf/infinity/nan with %i"..." to preserve case-insensitivity
- Inline single-use tokens to reduce ABNF size
- Add brief explanation of RFC 7405 notation
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Coded with Claude Sonnet 4.6.
---------
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Copy file name to clipboardExpand all lines: docs/specs/om/open_metrics_spec_2_0.md
+29-48Lines changed: 29 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -444,23 +444,25 @@ Push-based negotiation is inherently more complex, as the exposer typically init
444
444
445
445
### ABNF
446
446
447
-
ABNF as per RFC 5234
447
+
ABNF as per RFC 7405.
448
+
449
+
RFC 7405 is built on RFC 5234, but adds explicit case-sensitivity notation for string literals. The literal `%s"text"` means `text` is case-sensitive, and `%i"text"` means case-insensitive.
0 commit comments