Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tolerate MP Metrics 5.0 API changes, except MetricsRegistry injection #612

Merged
merged 1 commit into from Oct 5, 2022

Conversation

Azquelt
Copy link
Member

@Azquelt Azquelt commented Oct 3, 2022

Tolerate the following breaking changes in MP Metrics 5.0, while retaining support for MP Metrics 4.0:

  • Methods removed from Snapshot
  • Gauge<T> changed to Gauge<T extends Number>
    • Breaks binary compatibility because method signatures are different after type erasure

This does not include support for tolerating the removal of @RegistryType. See #117

Fixes #609

- Methods removed from Snapshot
- Gauge<T> changed to Gauge<T extends Number>
  - Breaks binary compatibility because method signatures are different
    after type erasure
@Azquelt
Copy link
Member Author

Azquelt commented Oct 5, 2022

With the merge of eclipse/microprofile-metrics#748, these are the only changes which are needed to make the TCK compatible with MP Metrics 5.0.

I've now run this locally on my workstation with openliberty, incorporating this smallrye-metrics change: smallrye/smallrye-metrics#558 and microprofile-metrics-api 5.0.0-RC3

Copy link
Member

@Emily-Jiang Emily-Jiang left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @Azquelt

@Azquelt Azquelt merged commit 4590626 into eclipse:master Oct 5, 2022
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.

TCK does not work with MP Metrics 5.0
2 participants