kumuluz / kumuluzee

Lightweight open-source framework for developing microservices using standard Java EE technologies and migrating Java EE to cloud-native architecture.
https://ee.kumuluz.com
MIT License
291 stars 71 forks source link

kumuluzee-metrics #195

Closed eriskooo closed 3 years ago

eriskooo commented 3 years ago

Hello,

I am struggling with https://github.com/kumuluz/kumuluzee-metrics ... Is there some working example, where will be scanned class with annotation @Gauge ? ... do I need to somehow register this variable and then as well use with annotation ?

many thankx for any help

eriskooo commented 3 years ago

ah, so class containing @Gauge annotation must be initiated. However kumuluz is missing Startup from EJB -> is there any other option plz ?

eriskooo commented 3 years ago
public void postConstruct(@Observes @Initialized(ApplicationScoped.class) Object o) {
    // CDI Ready
}