All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.micrometer.runtime.CompositeRegistryCreator Maven / Gradle / Ivy

Go to download

Instrument the runtime and your application with dimensional metrics using Micrometer.

There is a newer version: 3.17.5
Show newest version
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