René's URL Explorer Experiment


Title: feat: add OpenMetrics2TextFormatWriter skeleton · Issue #1948 · prometheus/client_java · GitHub

Open Graph Title: feat: add OpenMetrics2TextFormatWriter skeleton · Issue #1948 · prometheus/client_java

X Title: feat: add OpenMetrics2TextFormatWriter skeleton · Issue #1948 · prometheus/client_java

Description: Part of #1912. Depends on #1939 (merged). Blocks content negotiation (PR 1) and OM2 suffix handling in #1947. Motivation The OM2 feature flags from #1939 exist but there's no OM2 writer to apply them to. Content negotiation and suffix ha...

Open Graph Description: Part of #1912. Depends on #1939 (merged). Blocks content negotiation (PR 1) and OM2 suffix handling in #1947. Motivation The OM2 feature flags from #1939 exist but there's no OM2 writer to apply th...

X Description: Part of #1912. Depends on #1939 (merged). Blocks content negotiation (PR 1) and OM2 suffix handling in #1947. Motivation The OM2 feature flags from #1939 exist but there's no OM2 writer to appl...

Opengraph URL: https://github.com/prometheus/client_java/issues/1948

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: add OpenMetrics2TextFormatWriter skeleton","articleBody":"Part of #1912. Depends on #1939 (merged).\nBlocks content negotiation (PR 1) and OM2 suffix handling in #1947.\n\n## Motivation\n\nThe OM2 feature flags from #1939 exist but there's no OM2 writer\nto apply them to. Content negotiation and suffix handling both need\nan OM2 writer class to land their changes in.\n\n## Scope\n\n1. **`OpenMetrics2TextFormatWriter`** implementing `ExpositionFormatWriter`\n   - Start as copy of OM1 writer (identical output)\n   - `CONTENT_TYPE = \"application/openmetrics-text; version=2.0.0; charset=utf-8\"`\n   - `accepts()` same as OM1 (matches any OpenMetrics accept) — no version gating\n   - Takes `OpenMetrics2Properties` from #1939 in builder\n\n2. **Wire into `ExpositionFormats`**\n   - Add field + accessor\n   - When OM2 is enabled: `findWriter()` prefers OM2 over OM1\n   - When OM2 is not enabled: OM2 writer is not used\n\n3. **No new suffix logic, no composite values, no native histograms**\n\n## Testability\n\nWith OM2 enabled and `contentNegotiation=false` (default), the OM2\nwriter is always selected for OpenMetrics requests — masquerades as\nOM1 so it's testable with current Prometheus.\n\nContent negotiation then gates it: only route to OM2 when the\nscraper sends `version=2.0.0`.\n\n**Open question:** Does Prometheus reject responses with\n`Content-Type: ...; version=2.0.0` when it asked for OM1? If so,\nuse the OM1 content type string when `contentNegotiation=false`.","author":{"url":"https://github.com/zeitlinger","@type":"Person","name":"zeitlinger"},"datePublished":"2026-03-16T07:57:17Z","url":"https://github.com/prometheus/client_java/issues/1948"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:db69229e-c634-d83a-d7a9-beea466e88f3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD5B0:F3916:15FF26:1E6CA7:6AFBBC14
html-safe-nonceafe8fa6f797f9d18c5073a3642c9d4e0ff3cfda553d35642ce19230b4e4f42f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUIwOkYzOTE2OjE1RkYyNjoxRTZDQTc6NkFGQkJDMTQiLCJ2aXNpdG9yX2lkIjoiNjg3OTkwMjUwODg3Nzg1NTc2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac83d697baa32385688d0d84a6fd6653eea8f8bf613e9e4c3a5652dd0426dc677f
hovercard-subject-tagissue:4080847273
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/1948/issue_layout
twitter:imagehttps://opengraph.githubassets.com/709b0665132ccdedf33d17e3d4ef2cedc62220a91e535f67fb74d30104cee1ed/prometheus/client_java/issues/1948
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/709b0665132ccdedf33d17e3d4ef2cedc62220a91e535f67fb74d30104cee1ed/prometheus/client_java/issues/1948
og:image:altPart of #1912. Depends on #1939 (merged). Blocks content negotiation (PR 1) and OM2 suffix handling in #1947. Motivation The OM2 feature flags from #1939 exist but there's no OM2 writer to apply th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezeitlinger
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
go-importgithub.com/prometheus/client_java git https://github.com/prometheus/client_java.git
octolytics-dimension-user_id3380462
octolytics-dimension-user_loginprometheus
octolytics-dimension-repository_id7997879
octolytics-dimension-repository_nwoprometheus/client_java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7997879
octolytics-dimension-repository_network_root_nwoprometheus/client_java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/prometheus/client_java/issues/1948#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fissues%2F1948
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fissues%2F1948
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=prometheus%2Fclient_java
Reloadhttps://github.com/prometheus/client_java/issues/1948
Reloadhttps://github.com/prometheus/client_java/issues/1948
Reloadhttps://github.com/prometheus/client_java/issues/1948
prometheushttps://github.com/prometheus
client_javahttps://github.com/prometheus/client_java
Codehttps://github.com/prometheus/client_java
Issues12 (12)https://github.com/prometheus/client_java/issues
Pull requests18 (18)https://github.com/prometheus/client_java/pulls
Actionshttps://github.com/prometheus/client_java/actions
Projectshttps://github.com/prometheus/client_java/projects
Security and qualityhttps://github.com/prometheus/client_java/security
Insightshttps://github.com/prometheus/client_java/pulse
https://github.com/prometheus/client_java
New issuehttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/1948
New issuehttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/1948
#1951https://github.com/prometheus/client_java/pull/1951
feat: add OpenMetrics2TextFormatWriter skeletonhttps://github.com/prometheus/client_java/issues/1948#top
#1951https://github.com/prometheus/client_java/pull/1951
https://github.com/jaydeluca
https://github.com/zeitlinger
zeitlingerhttps://github.com/zeitlinger
on Mar 16, 2026https://github.com/prometheus/client_java/issues/1948#issue-4080847273
#1912https://github.com/prometheus/client_java/issues/1912
#1939https://github.com/prometheus/client_java/pull/1939
#1947https://github.com/prometheus/client_java/pull/1947
#1939https://github.com/prometheus/client_java/pull/1939
feat: Add OpenMetrics2 configuration support #1939https://github.com/prometheus/client_java/pull/1939
jaydelucahttps://github.com/jaydeluca
on Mar 16, 2026https://github.com/prometheus/client_java/issues/1948#event-23618353625
zeitlingerhttps://github.com/zeitlinger
completedhttps://github.com/prometheus/client_java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1951https://github.com/prometheus/client_java/pull/1951
on Mar 17, 2026https://github.com/prometheus/client_java/issues/1948#event-23632950181
zeitlingerhttps://github.com/zeitlinger
on Mar 17, 2026https://github.com/prometheus/client_java/issues/1948#event-23632950211
feat: Add skeleton OpenMetrics2TextFormatWriter (#1951)https://github.com/prometheus/client_java/commit/01f53e945edfc337b9ed13c0b5c28c8a170c3a48
#1951https://github.com/prometheus/client_java/pull/1951
https://docs.github.com/articles/closing-issues-via-commit-messages
01f53e9https://github.com/prometheus/client_java/commit/01f53e945edfc337b9ed13c0b5c28c8a170c3a48
Sign up for freehttps://github.com/signup?return_to=https://github.com/prometheus/client_java/issues/1948
Sign in to commenthttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/1948
jaydelucahttps://github.com/jaydeluca
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.