io.smallrye.faulttolerance.metrics.CompoundMetricsProvider Maven / Gradle / Ivy
package io.smallrye.faulttolerance.metrics;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.BooleanSupplier;
import java.util.function.LongSupplier;
import jakarta.annotation.Priority;
import jakarta.enterprise.inject.Alternative;
import jakarta.enterprise.inject.spi.CDI;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreakerEvents;
import io.smallrye.faulttolerance.core.metrics.MeteredOperation;
import io.smallrye.faulttolerance.core.metrics.MetricsProvider;
import io.smallrye.faulttolerance.core.metrics.MetricsRecorder;
@Singleton
@Alternative
@Priority(1)
public class CompoundMetricsProvider implements MetricsProvider {
private final boolean metricsEnabled;
private final MetricsProvider[] providers;
private final Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy