Package io.openlineage.client.metrics
Class CompositeMeterRegistryFactory
- java.lang.Object
-
- io.openlineage.client.metrics.CompositeMeterRegistryFactory
-
- All Implemented Interfaces:
MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>
public class CompositeMeterRegistryFactory extends java.lang.Object implements MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>
A builder class that provides implementations to build composite meter registries. This class implements the MetricsBuilder interface with CompositeMeterRegistry as its type.CompositeMeterRegistry is a type of MeterRegistry, that encapsulates two or more meter registries into one, and manages unified functionalities across all registries.
-
-
Constructor Summary
Constructors Constructor Description CompositeMeterRegistryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micrometer.core.instrument.composite.CompositeMeterRegistry
registry(java.util.Map<java.lang.String,java.lang.Object> config)
Constructs a CompositeMeterRegistry from a given map of configuration options.java.lang.String
type()
-
-
-
Method Detail
-
registry
public io.micrometer.core.instrument.composite.CompositeMeterRegistry registry(java.util.Map<java.lang.String,java.lang.Object> config)
Constructs a CompositeMeterRegistry from a given map of configuration options. The "registries" key in the map is expected to provide a list of meter registry configurations. Each configuration is parsed and, if parsed successfully, added to the CompositeMeterRegistry.- Specified by:
registry
in interfaceMeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>
- Parameters:
config
- The map containing the configurations for composite meter registry.- Returns:
- A CompositeMeterRegistry built from the provided configuration. An empty CompositeMeterRegistry is returned if the the map doesn't contain a list of configurations extended by registries.
-
type
public java.lang.String type()
- Specified by:
type
in interfaceMeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>
-
-