Class CompositeMeterRegistryFactory

java.lang.Object
io.openlineage.client.metrics.CompositeMeterRegistryFactory
All Implemented Interfaces:
MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>

public class CompositeMeterRegistryFactory extends 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 Details

    • CompositeMeterRegistryFactory

      public CompositeMeterRegistryFactory()
  • Method Details

    • registry

      public io.micrometer.core.instrument.composite.CompositeMeterRegistry registry(Map<String,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 interface MeterRegistryFactory<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 String type()
      Specified by:
      type in interface MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>