public class MicrometerServerMetricsContext extends Object
Constructor and Description |
---|
MicrometerServerMetricsContext(io.micrometer.core.instrument.MeterRegistry registry,
TagsProvider tagsProvider,
TimedAnnotationProvider timedAnnotationProvider,
List<TagsCustomizer> tagsCustomizers,
String metricName,
boolean autoTimeRequests) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<io.micrometer.core.instrument.Tag> |
getAllTags(Exchange ex) |
protected Iterable<io.micrometer.core.instrument.Tag> |
getAllTags(Exchange ex,
boolean client) |
protected void |
record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext,
Exchange ex) |
protected void |
record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext,
Exchange ex,
boolean client) |
void |
start(Exchange ex)
Will be called at the start of invoke (or when added to a started MessageMetrics).
|
protected void |
start(Message request,
Exchange ex) |
void |
stop(long timeInNS,
long inSize,
long outSize,
Exchange ex)
Called when the invocation is complete.
|
protected void |
stop(Message request,
long timeInNS,
long inSize,
long outSize,
Exchange ex) |
public MicrometerServerMetricsContext(io.micrometer.core.instrument.MeterRegistry registry, TagsProvider tagsProvider, TimedAnnotationProvider timedAnnotationProvider, List<TagsCustomizer> tagsCustomizers, String metricName, boolean autoTimeRequests)
public void start(Exchange ex)
MetricsContext
public void stop(long timeInNS, long inSize, long outSize, Exchange ex)
MetricsContext
protected void record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, Exchange ex)
protected Iterable<io.micrometer.core.instrument.Tag> getAllTags(Exchange ex, boolean client)
protected void record(org.apache.cxf.metrics.micrometer.MicrometerMetricsContext.TimingContext timingContext, Exchange ex, boolean client)
Apache CXF