-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Update to SmallRye Reactive Messaging 1.1.0 #7059
Update to SmallRye Reactive Messaging 1.1.0 #7059
Conversation
@kenfinnigan @geoand @mkouba There is something where I'm not quite sure: the metric support. In the PR, I just add this bean if the metric capability is enabled. Is there anything else required? |
I don't really know about metrics, so either the aforementioned people can help out or @jmartisk can chime in |
...ging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/DotNames.java
Outdated
Show resolved
Hide resolved
I like it, 👍 |
IIUC the EDIT: or rather Also we usually introduce a config property like |
Also if the set of channels (and therefore metrics) is known already at build time, the processor could optionally emit |
@jmartisk Thanks! So, unfortunately right now the set of channels is not known at build time. But I really want to go in this direction (it requires a bit more code and configuration analysis, nothing very hard). I will add the flag to enable and disable the metric, that makes sense! So, we expose them only if 1. the metric capability is enabled 2. the extension metrics are enabled. Am I right? |
Yes. |
@jmartisk About vendor, do you think the spec should mention it (See https://github.com/eclipse/microprofile-reactive-messaging/blob/22b40135a6dbffca17599ac79b89bd19174f2f98/spec/src/main/asciidoc/architecture.asciidoc#metrics). Right now the TCK uses the "default" registry: |
Hm, if the TCKs already expect them in default (which is
So I would suggest the next version of RM spec should move them to |
@jmartisk Actually, the spec has not been released with these changes yet... So, there is still time to fix it :-). Let me create an issue in the spec (will ping you from there). |
@cescoffier Oh, that's good news then :) sure. |
The TCK failures seem related |
For the TCKs, I think https://github.com/quarkusio/quarkus/blob/master/tcks/microprofile-reactive-messaging/pom.xml#L36 needs to add the Metrics extension, as by default it's not brought in through a required dependency |
The TCK failure is expected, the failing tests have been removed from the TCK, it was not correct. |
I've applied a workaround for the TCK. |
About the metrics change, let's wait until it's part of the upstream specification. It is going to happen soon I believe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but let's get an approval from @kenfinnigan and @jmartisk as well :)
...ava/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java
Outdated
Show resolved
Hide resolved
…eactive Messaging 1.1.0 * @stream has been removed * The Emitter is now part of the spec * The old emitter, channel and on overflow are now deprecated
We test both the old emitter support and the new one.
… metrics This follows the common convention used by the other extensions
…sions of Emitter, Channel and OnOverflow Also renamed the tests classes to follow the same convention.
First the TCK is checking the metrics support - so need metrics Then, some method signatures are now considered invalid (harmful) and the upcoming version of the TCK contains fixes for these tests. For now skip these.
* Mention the deprecation of the SmallRye Emitter / Channel / OnOverflow classes * Update code snippet (import statements)
This avoids a depending on metrics directly.
b30a826
to
35f8c8f
Compare
This version brings a new set of features:
@Stream
has been removed (already deprecated)