quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.58k stars 2.63k forks source link

Smallrye-metric and Micrometer differ in handling of non-scoped beans #31433

Open JiriOndrusek opened 1 year ago

JiriOndrusek commented 1 year ago

Description

Projects with smallrye-metric transform non-scoped beans (with metric annotations) into scoped ones. Quarkus extension adds Dependent annotation to them (see code)

If user wants to switch from smallrye-metrics to micrometer, all similar beans have to be manually defined as scoped.

Implementation ideas

It would be nice, if micrometer could do similar transformation as smallrye-metric (code). This could help users with switching between micrprofile and micrometer.

quarkus-bot[bot] commented 1 year ago

/cc @Ladicek (smallrye), @brunobat (micrometer), @ebullient (micrometer), @jmartisk (smallrye), @phillip-kruger (smallrye), @radcortez (smallrye)