Skip to content

fix: Tighten OM2 summary and start timestamp output#2041

Merged
jaydeluca merged 1 commit intoprometheus:mainfrom
zeitlinger:codex/om2-strict-conformance
Apr 23, 2026
Merged

fix: Tighten OM2 summary and start timestamp output#2041
jaydeluca merged 1 commit intoprometheus:mainfrom
zeitlinger:codex/om2-strict-conformance

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Summary

Tighten the OpenMetrics 2.0 text writer for non-histogram conformance details:

  • emit counter start timestamps inline with st@ instead of a separate _created sample
  • always include the quantile composite field for OM2 summaries, including quantile:[]
  • emit all summary exemplars attached to the composite summary sample

Context

These are follow-up OM2 conformance fixes separate from native histogram serialization. The existing content negotiation and content-type feature flag behavior is intentionally unchanged.

Validation

  • ./mvnw test -pl prometheus-metrics-exposition-textformats -Dtest=OpenMetrics2TextFormatWriterTest,ExpositionFormatsTest -Dcoverage.skip=true -Dcheckstyle.skip=true
  • mise run build

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger changed the title [codex] Tighten OM2 summary and start timestamp output fix: Tighten OM2 summary and start timestamp output Apr 23, 2026
@zeitlinger zeitlinger marked this pull request as ready for review April 23, 2026 08:57
@jaydeluca jaydeluca merged commit 5699469 into prometheus:main Apr 23, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants