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

org.zalando.riptide.autoconfigure.MicrometerPluginFactory Maven / Gradle / Ivy

There is a newer version: 4.3.0
Show newest version
package org.zalando.riptide.autoconfigure;

import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tag;
import org.zalando.riptide.Plugin;
import org.zalando.riptide.micrometer.MicrometerPlugin;
import org.zalando.riptide.micrometer.tag.TagGenerator;

import java.util.Collection;

final class MicrometerPluginFactory {

    private MicrometerPluginFactory() {

    }

    public static Plugin create(
            final MeterRegistry registry,
            final Iterable tags,
            final Collection generators) {

        return new MicrometerPlugin(registry)
                .withDefaultTags(tags)
                .withAdditionalTagGenerators(generators);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy