Class MicrometerServerMetricsContext

java.lang.Object
org.apache.cxf.metrics.micrometer.MicrometerServerMetricsContext
All Implemented Interfaces:
MetricsContext

public class MicrometerServerMetricsContext extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    MicrometerServerMetricsContext(io.micrometer.core.instrument.MeterRegistry registry, TagsProvider tagsProvider, TimedAnnotationProvider timedAnnotationProvider, List<TagsCustomizer> tagsCustomizers, String metricName, boolean autoTimeRequests)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Iterable<io.micrometer.core.instrument.Tag>
    getAllTags(org.apache.cxf.message.Exchange ex)
     
    protected Iterable<io.micrometer.core.instrument.Tag>
    getAllTags(org.apache.cxf.message.Exchange ex, boolean client)
     
    protected void
    record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, org.apache.cxf.message.Exchange ex)
     
    protected void
    record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, org.apache.cxf.message.Exchange ex, boolean client)
     
    void
    start(org.apache.cxf.message.Exchange ex)
    Will be called at the start of invoke (or when added to a started MessageMetrics).
    protected void
    start(org.apache.cxf.message.Message request, org.apache.cxf.message.Exchange ex)
     
    void
    stop(long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex)
    Called when the invocation is complete.
    protected void
    stop(org.apache.cxf.message.Message request, long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex)
     

    Methods inherited from class java.lang.Object

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

  • Method Details

    • start

      public void start(org.apache.cxf.message.Exchange ex)
      Description copied from interface: MetricsContext
      Will be called at the start of invoke (or when added to a started MessageMetrics). This is when the metrics should increment "inFlight" counts and other stats. There is no need to record a "start time" as the invoke time will be passed into the stop method.
    • stop

      public void stop(long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex)
      Description copied from interface: MetricsContext
      Called when the invocation is complete.
    • getAllTags

      protected Iterable<io.micrometer.core.instrument.Tag> getAllTags(org.apache.cxf.message.Exchange ex)
    • record

      protected void record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, org.apache.cxf.message.Exchange ex)
    • start

      protected void start(org.apache.cxf.message.Message request, org.apache.cxf.message.Exchange ex)
    • stop

      protected void stop(org.apache.cxf.message.Message request, long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex)
    • getAllTags

      protected Iterable<io.micrometer.core.instrument.Tag> getAllTags(org.apache.cxf.message.Exchange ex, boolean client)
    • record

      protected void record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, org.apache.cxf.message.Exchange ex, boolean client)