Class LoggingMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.push.PushMeterRegistry
io.micrometer.core.instrument.step.StepMeterRegistry
io.micrometer.core.instrument.logging.LoggingMeterRegistry
@Incubating(since="1.1.0") public class LoggingMeterRegistry extends StepMeterRegistry
Logging
MeterRegistry.- Since:
- 1.1.0
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoggingMeterRegistry.BuilderNested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
MeterRegistry.Config, MeterRegistry.More -
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock -
Constructor Summary
Constructors Constructor Description LoggingMeterRegistry()LoggingMeterRegistry(LoggingRegistryConfig config, Clock clock) -
Method Summary
Modifier and Type Method Description static LoggingMeterRegistry.Builderbuilder(LoggingRegistryConfig config)protected java.util.concurrent.TimeUnitgetBaseTimeUnit()protected DistributionSummarynewDistributionSummary(Meter.Id id, DistributionStatisticConfig distributionStatisticConfig, double scale)Build a new distribution summary to be added to the registry.protected TimernewTimer(Meter.Id id, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector)Build a new timer to be added to the registry.protected voidpublish()Methods inherited from class io.micrometer.core.instrument.step.StepMeterRegistry
defaultHistogramConfig, newCounter, newFunctionCounter, newFunctionTimer, newGauge, newLongTaskTimer, newMeterMethods inherited from class io.micrometer.core.instrument.push.PushMeterRegistry
close, start, start, stopMethods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, more, newLongTaskTimer, newTimeGauge, remove, remove, summary, summary, timer, timerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LoggingMeterRegistry
public LoggingMeterRegistry() -
LoggingMeterRegistry
-
-
Method Details
-
publish
protected void publish()- Specified by:
publishin classPushMeterRegistry
-
newTimer
protected Timer newTimer(Meter.Id id, DistributionStatisticConfig distributionStatisticConfig, PauseDetector pauseDetector)Description copied from class:MeterRegistryBuild a new timer to be added to the registry. This is guaranteed to only be called if the timer doesn't already exist.- Overrides:
newTimerin classStepMeterRegistry- Parameters:
id- The id that uniquely identifies the timer.distributionStatisticConfig- Configuration for published distribution statistics.pauseDetector- The pause detector to use for coordinated omission compensation.- Returns:
- A new timer.
-
newDistributionSummary
protected DistributionSummary newDistributionSummary(Meter.Id id, DistributionStatisticConfig distributionStatisticConfig, double scale)Description copied from class:MeterRegistryBuild a new distribution summary to be added to the registry. This is guaranteed to only be called if the distribution summary doesn't already exist.- Overrides:
newDistributionSummaryin classStepMeterRegistry- Parameters:
id- The id that uniquely identifies the distribution summary.distributionStatisticConfig- Configuration for published distribution statistics.scale- Multiply every recorded sample by this factor.- Returns:
- A new distribution summary.
-
getBaseTimeUnit
protected java.util.concurrent.TimeUnit getBaseTimeUnit()- Specified by:
getBaseTimeUnitin classMeterRegistry- Returns:
- the registry's base TimeUnit. Must not be null.
-
builder
-