-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ClassNotFoundException using quarkus-micrometer-registry-prometheus / quarkus-smallrye-graphql #15966
Comments
Micrometer does not require the MP Metrics API, but I think Smallrye GraphQL does have some entanglement with MP Metrics API IIRC. We should probably add the MP Metrics SPI to the GraphQL extension until the dependency goes away. |
@jmartisk - this rings a bell. Did you fix this ? |
I think (@jmartisk to confirm) that this is fixed here: smallrye/smallrye-graphql#688 but this is not in any release version yet, and the fix is only in the main branch, so will only be in Quarkus later (when supporting MP4). Except if we backport |
PR to add that dep back (for now). Which example was it? we should update that, too, I suppose. |
I don't think it was ever there.... |
I was referring to: maybe a note for users of Graphql exension mentioning the missing dep stated above would be sufficient for now? |
I can add to both guides (probably better) |
(cherry picked from commit 93d14f7)
A bit late to the party... anyway, I don't quite like https://github.com/quarkusio/quarkus/pull/15968/files because the new dependency is required, which means you get it even if you're not using metrics. It could have been made optional, and perhaps we could have changed the build-time code to detect a situation when GraphQL has metrics enabled (by config), but the MicroProfile API is missing, and throw an error or warning in that case. |
I think we should just backport your fix and do a new release and when pulling it into Quarkus remove this ? w.d.y.t ? |
It's strictly speaking a breaking change because the metrics will go through Micrometer directly rather than through the MP Metrics bridge, so they will, at minimum, lose the |
right.. but someone has opted to use the micrometer extension rather than the mp metrics extension, so presumably this change is expected.. |
#15998 -- I've also just created this (doc change) |
Hi all,
i hope its not a maven hickup on my side, I deleted my local repo and could reproduce the error.
Describe the bug
Quarkus 1.12.2 Final using quarkus-micrometer-registry-prometheus:
maybe in conjunction with :
@phillip-kruger (since I think you are working on a lot of graphql matters and im not sure about if this is a graphql issue)?
I get the following exception:
Expected behavior
Quarkus starts normally.
Actual behavior
See exception.
adding the following dependency solves the problem for me:
I would expect to either include the metrics reference in the tutorial if actually needed, or add it directly to the
quarkus-micrometer-registry-prometheus and/or others which maybe need the reference.
Hope someone can reproduce this issue.
Best
Jan
The text was updated successfully, but these errors were encountered: