Class MicrometerServerMetricsContext

  • All Implemented Interfaces:
    MetricsContext

    public class MicrometerServerMetricsContext
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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)  
    • Constructor Detail

    • Method Detail

      • 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)