Class MicrometerServerMetricsContext
java.lang.Object
org.apache.cxf.metrics.micrometer.MicrometerServerMetricsContext
- All Implemented Interfaces:
MetricsContext
-
Constructor Summary
ConstructorsConstructorDescriptionMicrometerServerMetricsContext(io.micrometer.core.instrument.MeterRegistry registry, TagsProvider tagsProvider, TimedAnnotationProvider timedAnnotationProvider, List<TagsCustomizer> tagsCustomizers, String metricName, boolean autoTimeRequests) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 voidrecord(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, org.apache.cxf.message.Exchange ex) protected voidrecord(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, org.apache.cxf.message.Exchange ex, boolean client) voidstart(org.apache.cxf.message.Exchange ex) Will be called at the start of invoke (or when added to a started MessageMetrics).protected voidstart(org.apache.cxf.message.Message request, org.apache.cxf.message.Exchange ex) voidstop(long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex) Called when the invocation is complete.protected voidstop(org.apache.cxf.message.Message request, long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex)
-
Constructor Details
-
MicrometerServerMetricsContext
public MicrometerServerMetricsContext(io.micrometer.core.instrument.MeterRegistry registry, TagsProvider tagsProvider, TimedAnnotationProvider timedAnnotationProvider, List<TagsCustomizer> tagsCustomizers, String metricName, boolean autoTimeRequests)
-
-
Method Details
-
start
public void start(org.apache.cxf.message.Exchange ex) Description copied from interface:MetricsContextWill 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:MetricsContextCalled 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)
-