Class InjectedMetricProducer
- java.lang.Object
-
- io.quarkus.micrometer.runtime.binder.mpmetrics.InjectedMetricProducer
-
@Singleton class InjectedMetricProducer extends Object
Create default producer methods for {literal @}Inject {literal @}Metric annotations requiringMeter,Timer,Counter, andHistogram. Due to build-time processing, {literal @}Metric annotations always have a name value that has been resolved according to MP Metrics naming conventions.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MetricRegistryAdaptermpRegistry
-
Constructor Summary
Constructors Constructor Description InjectedMetricProducer(MetricRegistryAdapter mpRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) org.eclipse.microprofile.metrics.ConcurrentGaugegetConcurrentGauge(javax.enterprise.inject.spi.InjectionPoint ip)For a programmatic concurrent gauge, create a gauge around a simple implementation that uses aLongAdder.(package private) org.eclipse.microprofile.metrics.CountergetCounter(javax.enterprise.inject.spi.InjectionPoint ip)(package private) org.eclipse.microprofile.metrics.HistogramgetHistogram(javax.enterprise.inject.spi.InjectionPoint ip)(package private) org.eclipse.microprofile.metrics.MetergetMeter(javax.enterprise.inject.spi.InjectionPoint ip)(package private) org.eclipse.microprofile.metrics.SimpleTimergetSimpleTimer(javax.enterprise.inject.spi.InjectionPoint ip)(package private) org.eclipse.microprofile.metrics.TimergetTimer(javax.enterprise.inject.spi.InjectionPoint ip)
-
-
-
Field Detail
-
mpRegistry
final MetricRegistryAdapter mpRegistry
-
-
Constructor Detail
-
InjectedMetricProducer
InjectedMetricProducer(MetricRegistryAdapter mpRegistry)
-
-
Method Detail
-
getCounter
@Produces org.eclipse.microprofile.metrics.Counter getCounter(javax.enterprise.inject.spi.InjectionPoint ip)
-
getConcurrentGauge
@Produces org.eclipse.microprofile.metrics.ConcurrentGauge getConcurrentGauge(javax.enterprise.inject.spi.InjectionPoint ip)
For a programmatic concurrent gauge, create a gauge around a simple implementation that uses aLongAdder. The metrics gathered this way will not be as rich as with theLongTimerTask-based metrics used with the {literal @}ConcurrentGauge annotation, but is the best the API semantics allow (decrement/increment).
-
getHistogram
@Produces org.eclipse.microprofile.metrics.Histogram getHistogram(javax.enterprise.inject.spi.InjectionPoint ip)
-
getMeter
@Produces org.eclipse.microprofile.metrics.Meter getMeter(javax.enterprise.inject.spi.InjectionPoint ip)
-
getSimpleTimer
@Produces org.eclipse.microprofile.metrics.SimpleTimer getSimpleTimer(javax.enterprise.inject.spi.InjectionPoint ip)
-
getTimer
@Produces org.eclipse.microprofile.metrics.Timer getTimer(javax.enterprise.inject.spi.InjectionPoint ip)
-
-