Package tech.illuin.pipeline.metering
Class MetricFunctions
java.lang.Object
tech.illuin.pipeline.metering.MetricFunctions
- Author:
- Pierre Lecerf ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<io.micrometer.core.instrument.Tag>combine(Collection<io.micrometer.core.instrument.Tag> mainstayTags, Collection<io.micrometer.core.instrument.Tag> tags) Combines a generated collection and a mainstay collection of metric tags, the mainstay collection entries are reserved entries and cannot be overwritten.combine(Map<String, String> mainstayMarkers, Map<String, String> markers, Map<String, String> dynamicMarkers) Combines a generated map and a mainstay map of log markers, the mainstay map entries are reserved entries and cannot be overwritten.static Collection<io.micrometer.core.instrument.Tag>compileAndFillTags(MetricTags metricTags, MeterRegistryKey key, io.micrometer.core.instrument.Tag... tags) static Collection<io.micrometer.core.instrument.Tag>compileAndFillTags(MetricTags metricTags, MeterRegistryKey key, Collection<io.micrometer.core.instrument.Tag> tags) compileMarkers(MetricTags metricTags, Map<String, String> mainstayMarkers, Map<String, String> dynamicMarkers) static Collection<io.micrometer.core.instrument.Tag>compileTags(MetricTags metricTags, io.micrometer.core.instrument.Tag... mainstayTags)
-
Method Details
-
combine
public static Collection<io.micrometer.core.instrument.Tag> combine(Collection<io.micrometer.core.instrument.Tag> mainstayTags, Collection<io.micrometer.core.instrument.Tag> tags) Combines a generated collection and a mainstay collection of metric tags, the mainstay collection entries are reserved entries and cannot be overwritten.- Parameters:
mainstayTags- the reserved tagstags- the generated tags- Returns:
- the resulting tag collection
-
combine
public static Map<String,String> combine(Map<String, String> mainstayMarkers, Map<String, String> markers) - See Also:
-
combine
public static Map<String,String> combine(Map<String, String> mainstayMarkers, Map<String, String> markers, Map<String, String> dynamicMarkers) Combines a generated map and a mainstay map of log markers, the mainstay map entries are reserved entries and cannot be overwritten.- Parameters:
mainstayMarkers- the reserved markersmarkers- the generated markersdynamicMarkers- dynamically provided markers- Returns:
- the resulting marker map
-
compileTags
public static Collection<io.micrometer.core.instrument.Tag> compileTags(MetricTags metricTags, io.micrometer.core.instrument.Tag... mainstayTags) -
compileAndFillTags
public static Collection<io.micrometer.core.instrument.Tag> compileAndFillTags(MetricTags metricTags, MeterRegistryKey key, io.micrometer.core.instrument.Tag... tags) -
compileAndFillTags
public static Collection<io.micrometer.core.instrument.Tag> compileAndFillTags(MetricTags metricTags, MeterRegistryKey key, Collection<io.micrometer.core.instrument.Tag> tags) -
compileMarkers
-