io.quarkus.micrometer.runtime.CompositeRegistryCreator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-micrometer Show documentation
Show all versions of quarkus-micrometer Show documentation
Instrument the runtime and your application with dimensional metrics using Micrometer.
package io.quarkus.micrometer.runtime;
import static jakarta.interceptor.Interceptor.Priority.PLATFORM_AFTER;
import jakarta.annotation.Priority;
import jakarta.enterprise.inject.Alternative;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Metrics;
/**
* @return the single resolvable "root" MeterRegistry
*/
public class CompositeRegistryCreator {
@Produces
@Singleton
@Alternative
@Priority(PLATFORM_AFTER)
public MeterRegistry produceRootRegistry() {
return Metrics.globalRegistry;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy