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 requiring Meter, Timer, Counter, and Histogram. 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) final MetricRegistryAdapter
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) org.eclipse.microprofile.metrics.ConcurrentGauge
    getConcurrentGauge(jakarta.enterprise.inject.spi.InjectionPoint ip)
    For a programmatic concurrent gauge, create a gauge around a simple implementation that uses a LongAdder.
    (package private) org.eclipse.microprofile.metrics.Counter
    getCounter(jakarta.enterprise.inject.spi.InjectionPoint ip)
     
    (package private) org.eclipse.microprofile.metrics.Histogram
    getHistogram(jakarta.enterprise.inject.spi.InjectionPoint ip)
     
    (package private) org.eclipse.microprofile.metrics.Meter
    getMeter(jakarta.enterprise.inject.spi.InjectionPoint ip)
     
    (package private) org.eclipse.microprofile.metrics.SimpleTimer
    getSimpleTimer(jakarta.enterprise.inject.spi.InjectionPoint ip)
     
    (package private) org.eclipse.microprofile.metrics.Timer
    getTimer(jakarta.enterprise.inject.spi.InjectionPoint ip)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getCounter

      @Produces org.eclipse.microprofile.metrics.Counter getCounter(jakarta.enterprise.inject.spi.InjectionPoint ip)
    • getConcurrentGauge

      @Produces org.eclipse.microprofile.metrics.ConcurrentGauge getConcurrentGauge(jakarta.enterprise.inject.spi.InjectionPoint ip)
      For a programmatic concurrent gauge, create a gauge around a simple implementation that uses a LongAdder. The metrics gathered this way will not be as rich as with the LongTimerTask-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(jakarta.enterprise.inject.spi.InjectionPoint ip)
    • getMeter

      @Produces org.eclipse.microprofile.metrics.Meter getMeter(jakarta.enterprise.inject.spi.InjectionPoint ip)
    • getSimpleTimer

      @Produces org.eclipse.microprofile.metrics.SimpleTimer getSimpleTimer(jakarta.enterprise.inject.spi.InjectionPoint ip)
    • getTimer

      @Produces org.eclipse.microprofile.metrics.Timer getTimer(jakarta.enterprise.inject.spi.InjectionPoint ip)