Skip to content

docs(expfmt): update OpenMetrics 2.0 supported metric types comments - #989

Open
dashpole wants to merge 1 commit into
prometheus:mainfrom
dashpole:om2_doc_comments
Open

dashpole wants to merge 1 commit into
prometheus:mainfrom
dashpole:om2_doc_comments

Conversation

@dashpole

Copy link
Copy Markdown
Contributor

Closes #893

Update the documentation comments on NewOpenMetricsFormat and MetricFamilyToOpenMetrics20 to reflect that all dto.MetricType metric types (counter, gauge, summary, untyped, histogram, and gaugehistogram) are now implemented in the OpenMetrics 2.0 encoder (with info and stateset unsupported as they are not present in client_model).

@dashpole
dashpole requested a lite review from Copilot September 18, 2026 20:57
Signed-off-by: David Ashpole <dashpole@google.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Documentation-only changes are fully reviewed with no unresolved issues.

Pull request overview

Updates OpenMetrics 2.0 documentation to accurately describe supported metric types and unsupported types unavailable in client_model.

Changes:

  • Documents support for all six client_model metric types.
  • Clarifies that info and stateset are unsupported.
  • Removes outdated work-in-progress wording.
File summaries
File Description
expfmt/openmetrics_2_0_create.go Updates encoder documentation.
expfmt/expfmt.go Updates format and API comments.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dashpole
dashpole marked this pull request as ready for review September 18, 2026 23:19
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.

expfmt: Support OpenMetrics 2.0

2 participants