Title: Add API compatibility linting to CI · Issue #1901 · prometheus/client_java · GitHub
Open Graph Title: Add API compatibility linting to CI · Issue #1901 · prometheus/client_java
X Title: Add API compatibility linting to CI · Issue #1901 · prometheus/client_java
Description: Summary Add automated API compatibility checking to CI to detect source-incompatible and binary-incompatible changes before they are released. Motivation In 1.5.0, PR #1800 changed MetricWithFixedMetadata.getMetadata() from protected to ...
Open Graph Description: Summary Add automated API compatibility checking to CI to detect source-incompatible and binary-incompatible changes before they are released. Motivation In 1.5.0, PR #1800 changed MetricWithFixedM...
X Description: Summary Add automated API compatibility checking to CI to detect source-incompatible and binary-incompatible changes before they are released. Motivation In 1.5.0, PR #1800 changed MetricWithFixedM...
Opengraph URL: https://github.com/prometheus/client_java/issues/1901
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add API compatibility linting to CI","articleBody":"## Summary\n\nAdd automated API compatibility checking to CI to detect source-incompatible\nand binary-incompatible changes before they are released.\n\n## Motivation\n\nIn 1.5.0, PR #1800 changed `MetricWithFixedMetadata.getMetadata()` from\n`protected` to `public` — a source-incompatible change that was not caught\nduring review (see #1897).\n\n## Tools to add\n\nBoth are used by [OpenTelemetry Java](https://github.com/open-telemetry/opentelemetry-java)\nand complement each other:\n\n1. **[japicmp](https://github.com/siom79/japicmp)** — Maven plugin that\n compares two versions of a JAR and reports binary/source incompatibilities.\n Catches changes like visibility narrowing, method removal, signature\n changes, etc.\n2. **[Animal Sniffer](https://www.mojohaus.org/animal-sniffer/)** — checks\n that code only uses APIs from a defined API signature. Useful for enforcing\n a stable public API baseline.\n\n## Acceptance criteria\n\n- [ ] japicmp integrated into CI, failing on binary/source-incompatible\n changes to public/protected API\n- [ ] Animal Sniffer integrated into CI, checking against a defined API\n signature baseline\n- [ ] Mechanism to explicitly allow intentional breaking changes (e.g.,\n baseline file or annotation)\n- [ ] Documented in CLAUDE.md / contributor guide","author":{"url":"https://github.com/zeitlinger","@type":"Person","name":"zeitlinger"},"datePublished":"2026-02-20T15:27:12Z","url":"https://github.com/prometheus/client_java/issues/1901"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b02a15b0-02eb-d479-8488-a008f5c107f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3F8:1824CC:20EF8D:2D15BA:6AFBAEC1 |
| html-safe-nonce | ad4c84296af3d1ead6edc57e510d0a70a0584dfa32bdac3d816d0104e1312fb7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0Y4OjE4MjRDQzoyMEVGOEQ6MkQxNUJBOjZBRkJBRUMxIiwidmlzaXRvcl9pZCI6IjU2NjQyODA2MzY0Mzc1NDA1NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3e8cbdbfc1c395599ba49a39d802fb5cb2d5af6f24e5b8ac3dc106fef316045 |
| hovercard-subject-tag | issue:3969104589 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/1901/issue_layout |
| twitter:image | https://opengraph.githubassets.com/884fc1d290e992dca7fa3983b22f9b45b591ae36ea109bb67cf6470de855400d/prometheus/client_java/issues/1901 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/884fc1d290e992dca7fa3983b22f9b45b591ae36ea109bb67cf6470de855400d/prometheus/client_java/issues/1901 |
| og:image:alt | Summary Add automated API compatibility checking to CI to detect source-incompatible and binary-incompatible changes before they are released. Motivation In 1.5.0, PR #1800 changed MetricWithFixedM... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zeitlinger |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_java git https://github.com/prometheus/client_java.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 7997879 |
| octolytics-dimension-repository_nwo | prometheus/client_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7997879 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width